[GRASS5] bash in scripts

Hi 2 all, Hi Reinhard,

i noticed that my new and old scripts reference bash (#!/bin/bash),
which is available by default only on linux.
I just updated the scripts in CVS (pre-release tagged version). I think
that my scripts do not use any bash idiosyncrasies.

Reinhard, i found that you use bash in
src/tcltkgrass/scripts/cell.out.tiff, wait.sh and mapcalculator.sh.
Could you please check if there are any constructs that are available
only with bash? If no, please change to sh, else construct something
that will not reference an absolute path (e. g. on my Solaris
installation bash is in /usr/local/bin/bash, sometimes it is in
/opt/sfw/bin/bash or similar).

Thanks,

Andreas
--
Andreas Lange, 65187 Wiesbaden, Germany, Tel. +49 611 807850
Andreas.Lange@Rhein-Main.de - A.C.Lange@GMX.net

Hi

Andreas Lange wrote:

If no, please change to sh, else construct something
that will not reference an absolute path (e. g. on my Solaris
installation bash is in /usr/local/bin/bash, sometimes it is in
/opt/sfw/bin/bash or similar).

Please do not use bash at all. It is not installed by default on SGI
machines. All shell scripts should use sh since it is the only shell
guaranteed to be platform independent. At least I have never seen a UNIX
system that did not provide sh.

Just my 2 cents worth.

--
Sincerely,

Jazzman (a.k.a. Justin Hickey) e-mail: jhickey@hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand

People who think they know everything are very irritating to those
of us who do. ---Anonymous

Jazz and Trek Rule!!!