[GRASS5] Enviroment variables in scripts on Windows

Glynn Clements glynn at gclements.plus.com
Thu Mar 30 15:05:53 EST 2006


Radim Blazek wrote:

> I found that names of enviroment variables set in g.parser
> are converted in execlp(?) to uppercase.
> Consequently variable GIS_OPT_input for example is not defined
> and script fails. The name of variable was converted to GIS_OPT_INPUT.
> 
> Any ideas how to resolve this?

This appears to be done by both Cygwin and the MSys version of bash. 
Windows itself preserves the case of environment variables (although
lookups are case-insensitive).

I have no idea how to resolve this, other than changing both g.parser
and all of the scripts which use it.

It might be worth checking whether the Korn shell from Microsoft's
Services for Unix exhibits the same behaviour.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list