[GRASS-dev] Re: [bug #4617] (grass) Error in startup script: missing close-brace

Glynn Clements glynn at gclements.plus.com
Mon Jun 19 01:43:21 EDT 2006


Stefan Paulick wrote:

> > > bash: setenv: command not found
> > 
> > ...this doesn't look good to me...
> > 
> > Markus
> 
> reported bug 4617 is gone with fixing 4619, but it looks like setenv is
> not available in a standard ubuntu installation(?)
> 
> when calling tcsh, I have setenv. Starting grass out of tcsh invokes sh,
> which is again free of setenv...
> 
> Is this a matter of system setup?

"setenv" is a csh built-in command; you can't use it in Bourne-shell
scripts.

The Bourne-shell equivalent is:

	var=value
	export var

[bash allows the above to be reduced to "export var=value", but that
isn't portable.]

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




More information about the grass-dev mailing list