[GRASS5] Re: TCLTKGRASS broken on Linux

Markus Neteler neteler at itc.it
Mon May 19 12:25:20 EDT 2003


On Mon, May 19, 2003 at 04:06:12PM +0100, Glynn Clements wrote:
> 
> Markus Neteler wrote:
> 
> > > I recently checked the updates in 5.0.3 and found
> > > that due to quoted variables in "tcltkgrass" shell
> > > script
> > > (your diff to 1.10) these variables are null elsewhere
> > > thus nothing works in picking features in tcltkgrass
> > > boxes.
> > > It's 7.3 RedHat with 8.3 Tcl/Tk on my box.
> > 
> > thanks for pointing this out - on Redhat 7.3 it works...
> > 
> > grass/src/tcltkgrass/tcltkgrass,v
> > retrieving revision 1.10
> > retrieving revision 1.11
> > diff -r1.10 -r1.11
> > 12,14c12,14
> > < set env(GISDBASE) [exec g.gisenv get=GISDBASE]
> > < set env(LOCATION_NAME) [exec g.gisenv get=LOCATION_NAME]
> > < set env(MAPSET) [exec g.gisenv get=MAPSET]
> > ---
> > > set env(GISDBASE) [exec g.gisenv get="GISDBASE"]
> > > set env(LOCATION_NAME) [exec g.gisenv get="LOCATION_NAME"]
> > > set env(MAPSET) [exec g.gisenv get="MAPSET"]
> > 
> > Is this change wrong?
> 
> Yes.
> 
> > Should it be 
> > get=\"LOCATION_NAME\"
> > etc instead?
> 
> No; it should be as it was before, without quotes.
> 
> Tcl is not the Bourne shell. Even if it was, those changes would be
> unnecessary, as what was being quoted were variable names, not
> variable values (with a dollar sign).

Thanks.
Fixed in CVS now.

Markus




More information about the grass-dev mailing list