[GRASS5] 5.0.2 trashes .grassrc5

Markus Neteler neteler at itc.it
Thu Mar 13 03:27:17 EST 2003


On Sun, Mar 09, 2003 at 06:23:40PM +0000, Glynn Clements wrote:
[...]
> I see what you are trying to do, but it's the wrong approach. The
> grass5 script itself needs to be changed to preserve argument
> boundaries, e.g.
> 
> 	exec "$GISBASE/etc/Init.sh" "$GRASS_GUI" "$@"
> 
> Actually, the grass5 script should be reduced to just:
> 
> 	#!/bin/sh
> 	GISBASE=...
> 	export GISBASE
> 	exec "$GISBASE/etc/Init.sh" "$@"
> 
> with everything else moved into Init.sh. That will work for every
> possible combination of arguments, even those which include embedded
> spaces, newlines, quotes etc.

I have submitted an update to 5.0/CVS/HEAD for
src/general/init/grass.src
src/general/init/init.sh

according to the suggestions above. White space support should be present
(I tried on Linu only) again.

In fact the script is simpler now.

Markus




More information about the grass-dev mailing list