[GRASS-dev] g.parser: Note on setting bash' IFS to parse separate identities

Nikos Alexandris nik at nikosalexandris.net
Tue Nov 4 03:14:33 PST 2014


In <http://grass.osgeo.org/grass71/manuals/g.parser.html>, "Notes":

--%<---
...individual comma separated identities for an option named "input" 
can be parsed with the following Bash shell code:

IFS=,
for opt in $GIS_OPT_INPUT ; do
     ... "$opt"
done
--->%--

Doesn't this require to set the IFS back to what it was?  Maybe note it 
too?
I've been trapped in this (as usual, not being careful): 
<http://unix.stackexchange.com/a/98853/13011>.

Nikos


More information about the grass-dev mailing list