[DebianGIS-dev] Bug#530092: grass: bashism in /bin/sh script
Hamish
hamish_b at yahoo.com
Tue May 26 14:17:08 UTC 2009
Package: grass
Followup-For: Bug #530092
checkbashisms' output:
> possible bashism in ./usr/lib/grass64/scripts/mkftcap line 34 (should
> be >word 2>&1):
> if which fc-list >&/dev/null ; then
don't know. source:
http://trac.osgeo.org/grass/browser/grass/branches/develbranch_6/tools/mkftcap/mkftcap
> possible bashism in ./usr/lib/grass64/scripts/d.m line 13
> ($HOST(TYPE|NAME)):
> if [ "$HOSTTYPE" = "macintosh" -o "$HOSTTYPE" = "powermac" -o
> "$HOSTTYPE" = "powerpc" -o "$HOSTTYPE" = "intel-pc" ] ; then
not relevant to Debian; fails safely
> possible bashism in ./usr/lib/grass64/etc/grass-run.sh line 5 ($BASH):
> if [ "$TERM" = "xterm" ] && [ -n "$BASH" ] ; then
this is a test to see if we are using Bash ...
> possible bashism in ./usr/lib/grass64/etc/grass-run.sh line 7 (echo
-e):
> echo -e "\033]0;${TITLE}\007\c"
... before using a Bashism. (fails safely)
> possible bashism in ./usr/lib/grass64/etc/grass-run.sh line 35 (should
be
> read [-r] variable):
> read
valid; fixed upstream in svn r37509,10
> possible bashism in ./usr/lib/grass64/etc/Init.sh line 330
> ($HOST(TYPE|NAME)):
> if [ "$HOSTTYPE" = "arm" ] ; then
this is probably not of interest to Debian; thus if it fails no loss.
(fails safely)
> possible bashism in ./usr/lib/grass64/etc/Init.sh line 859 (unsafe
> echo with backslash):
> echo "set prompt = '\\" >> "$cshrc"
> possible bashism in ./usr/lib/grass64/etc/Init.sh line 860 (unsafe
> echo with backslash):
> echo "Mapset <${MAPSET}> in Location <${LOCATION_NAME}> \\" >>
"$cshrc"
tested in dash and csh -- works as expected.
anyway this is inside a test if `basename $SHELL` = "csh|tcsh".
Hamish
More information about the Pkg-grass-devel
mailing list