[GRASS5] i.group and g.mlist/tcsh problem

Markus Neteler neteler at itc.it
Thu Nov 18 10:42:39 EST 2004


On Thu, Nov 18, 2004 at 07:57:26PM +1300, Hamish wrote:
> > with tcsh we have an annoying problem here (works fine with bash):
> > 
> > GRASS 5.7.cvs > i.group gr=avgroup in=`g.mlist rast sep=, pat="av*"`
> > Word too long.
> > 
> > GRASS 5.7.cvs > g.mlist rast pat="av*" | wc -l
> >     601
> > GRASS 5.7.cvs > g.mlist rast pat="av*" | wc -c
> >   19232
> > 
> > 19232 characters are really not that much. Any tricks to 
> > extend that (solution for non-root users)? 
> 
> 
> 
> > G57cvs> i.group gr=avgroup in=`g.mlist rast sep=, pat="av*"`
> 
> Is tcsh going to take a command longer than 4096 chars long?
> 
> maybe pipe 'g.mlist sep=\n' to a file and then use a loop with head &
> tail to feed 100 names at a time until done..

...mhhh...
 
> .. or just make a $MAPSET/group/groupname/REF file directly with awk.
> Apparently just "$map $mapset\n"

Thanks for the info.

Maybe the best trick is to tell the sysadmin to change to bash login shell?

Markus




More information about the grass-dev mailing list