Can anyone explain the following?

tla19> set|grep FOOFOOFOO
tla19> if [ -d ${FOOFOOFOO:=""} ]; then echo YES;fi
YES
tla19> echo $BASH_VERSION 
4.4.12(1)-release

I don't get YES printed with 4.1.2(1)-release on Scientific Linux 6. I do
with 4.2.46(1)-release on Scientific Linux 7 and it happens with the latest
release on both.

This is a simplified version of some code from a Cadence setup script; the
above behaviour causes it to fail on SL7.


Michael Gordon
-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

Reply via email to