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

Hamish hamish_nospam at yahoo.com
Mon Jun 19 03:01:34 EDT 2006


Glynn Clements wrote:

> "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.]


$ grep -rI export scripts/* | grep '=' | wc -l
77

$ grep -rI 'bin/bash' scripts/*
scripts/r.mapcalculator/r.mapcalculator:#!/bin/bash
scripts/r3.mapcalculator/r3.mapcalculator:#!/bin/bash



we have some work to do then.... :-/


Hamish




More information about the grass-dev mailing list