Changeset 8734 for trunk/gsdl/setup.bash


Ignore:
Timestamp:
2004-12-03T14:57:43+13:00 (19 years ago)
Author:
jrm21
Message:

osx's 'which' command returns 0 even if it can't find an executable...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/setup.bash

    r7029 r8734  
    4848# "iconv" is the program for converting text between encodings.
    4949gsdliconv=`which iconv 2>/dev/null`
    50 if test $? -ne 0 || test -z "$gsdlfromenc" || test -z "$gsdltoenc"; then
     50if test $? -ne 0 || test ! -x "$gsdliconv" || test -z "$gsdlfromenc" || test -z "$gsdltoenc"; then
    5151# we can't convert encodings from some reason
    5252  gsdliconv="cat"
Note: See TracChangeset for help on using the changeset viewer.