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

Maciek Sieczka via RT grass-bugs at intevation.de
Wed Mar 28 09:50:40 EDT 2007


Hi. More on that.

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.

Most of those will propably get fixed in the process of echo->g.message fixes,
but there are some in build scripts even.

Offenders include:

gem/docs/make-html.sh:echo -e "Did you export a fresh .tex file from LyX first?\n"

lib/gis/Makefile:       echo -e "#include <stdlib.h>\n#include
<fcntl.h>\n#undef _fmode\nint _fmode = _O_BINARY;" > $(OBJDIR)/fmode.c

lib/init/grass-run.src:   echo -e "\033]0;${TITLE}\007\c"

lib/init/grass-run.src:   echo -e "\r"

scripts/g.mlist/g.mlist:    echo -e ""

scripts/v.db.addcol/v.db.addcol:   echo -e "\nERROR: There is no table
connected to this map !\nRun v.db.connect or v.db.addtable first.\n"

scripts/v.db.addcol/v.db.addcol:      echo -e "\nERROR: There is an empty
column !\nDid you leave a trailing comma?\n"

scripts/v.db.update/v.db.update:   echo -e "\nThere is no table connected to
this map !\nRun v.db.connect or v.db.addtable first.\n"

scripts/v.dissolve/v.dissolve:      echo -e "\nERROR: There is no table
connected to this map!"

scripts/v.in.gpsbabel/v.in.gpsbabel:        echo -e "$ROUTE_ID \t$NUMBER
\t$R_NAME \t$START_PNT ">> "$TMP.route_atts"

scripts/v.in.gpsbabel/v.in.gpsbabel:        echo -e "$TRACK_ID \t$S_TIME
\t$S_LAT \t$S_LON \t$E_TIME \t$E_LAT \t$E_LON">> "$TMP.track_atts"

scripts/v.db.dropcol/v.db.dropcol:   echo -e "\nERROR: There is no table
connected to this map! Cannot delete any column."

tools/build_html_index.sh:echo -e "\n<!-- GEM Extensions StartHTML. Do not
delete or change this comment! -->\n" >> $FILENAME

Maciek


-------------------------------------------- Managed by Request Tracker




More information about the grass-dev mailing list