[GRASS-dev] g.parser: Note on setting bash' IFS to parse separate identities
Glynn Clements
glynn at gclements.plus.com
Tue Nov 4 04:58:06 PST 2014
Nikos Alexandris wrote:
> --%<---
> ...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?
Yes.
Or even just remove the reference to bash from the 7.x documentation.
If you're using 7.x, Python is almost mandatory, so why would you
write bash scripts?
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list