[GRASS-dev] [bug #5499] (grass) bash scripts starting with #!/bin/sh
Hamish Bowman via RT
grass-bugs at intevation.de
Tue May 15 06:35:32 EDT 2007
this bug's URL: http://intevation.de/rt/webrt?serial_num=5499
Request number 5499 was commented on by 'hbowman' (Hamish Bowman).
Responding to this message will send mail to the requestor.
Request Tracker
rt at intevation.de
--------------------------------------------------------------
Cc: grass-dev at grass.itc.it, dca.gis at gmail.com
Re removing bashisms.
i.spectral: uses $array[0]. Don't know how to fix that, changed to use
#!/bin/bash; backported to 6.2.
v.in.gpsbabel: uses "echo -e" in two places, like:
echo -e "$ROUTE_ID \t$NUMBER \t$R_NAME \t$START_PNT ">> "$TMP.route_atts"
how to fix that?
echo "$ROUTE_ID |$NUMBER |$R_NAME |$START_PNT " \
| tr '|' '\t' >> "$TMP.route_atts"
??
Daniel:
> BTW there are lots of 'if test "$GISBASE" = ""; then' ; was this a
> preferred method to -z for some reason? Is there some risk involved?
Vague memories that [..=""] was causing problems on Cygwin long long ago.
It has been updated to use [ -z "$foo" ] in many places, not the other way around.
Hamish
-------------------------------------------- Managed by Request Tracker
More information about the grass-dev
mailing list