For the FIX toolbox version fix1.06, I have noticed that
source settings.sh
gives me the wanted FSL_FIXDIR environment variable only if run from the fix1.06 directory. On one Redhat Linux system, this is okay, assigning FSL_FIXDIR=$PWD after "dirname $0" returns "bash" when the file is sourced, but on other systems FSL_FIXDIR=/home/USERNAME if "dirname $0" returns "-bash" with a dirname unknown -b option error.
When the settings.sh file is sourced and not executed, the $0 argument is the name of the shell, not the script as might be expected. Can you suggest a replacement line for the code in settings.sh that uses:
FSL_FIXDUR=$( cd ($dirname $0) ; pwd)
Thanks,
Kathy Pearson
|