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

Request Tracker grass-bugs at intevation.de
Sun Feb 18 10:47:52 EST 2007


this bug's URL: http://intevation.de/rt/webrt?serial_num=5499
-------------------------------------------------------------------------

Subject: bash scripts starting with #!/bin/sh

Platform: GNU/Linux/x86
grass obtained from: Other (CDROM etc)
grass binary for platform: Downloaded precompiled Binaries
GRASS Version: 6.2.1

I experienced problems with Ubuntu 6.10 installation. The r.in.wms script refused to work with errors like this:
/usr/lib/grass/etc/r.in.wms//wms.request: 326: SIZE_ARRAY[0]=: not found
/usr/lib/grass/scripts/r.tileset: 193: declare: not found
/usr/lib/grass/scripts/r.tileset: 258: Syntax error: Bad for loop variable

It took me about a couple of hours to find out that the reason is that Ubuntu developers decided to change the symbolic link /bin/sh from /bin/bash to /bin/dash, which is POSIX-compliant, but much less feature-rich than bash.

Setting it back to /bin/bash solved the problem, but still indicating the right interpreter in the headers will also be great.

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




More information about the grass-dev mailing list