[GRASS-dev] [bug #5499] (grass) bash scripts starting with #!/bin/sh

Hamish hamish_nospam at yahoo.com
Tue May 1 04:15:01 EDT 2007


Maciek Sieczka via RT wrote:
> > In current 6.3 CVS there are several instances of "echo -e", which
> > is a bashism. In dash "echo -e" will just print '-e' string.
> 
> > lib/gis/Makefile:       echo -e "#include <stdlib.h>\n#include
> > <fcntl.h>\n#undef _fmode\nint _fmode = _O_BINARY;" >
> > $(OBJDIR)/fmode.c

left to someone else to fix. (I'm not big on Makefile fu)

> > lib/init/grass-run.src:   echo -e "\033]0;${TITLE}\007\c"
> > lib/init/grass-run.src:   echo -e "\r"
> 
> These two instances make the grass-run.sh affected as well. "-e" is a
> bashism. Since grass-run.sh has a "#!/bin/sh" shebang, even in bash in
> runs in a POSIX shell compliant, thus prints spurious "-e"'s into the
> terminal.

fixed in CVS.


Hamish




More information about the grass-dev mailing list