[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in [ -d ... ] ?

From: Michael F Gordon
Subject: Bug in [ -d ... ] ?
Date: Thu, 2 Nov 2017 11:03:27 +0000
User-agent: Mutt/1.5.20 (2009-12-10)

Can anyone explain the following?

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

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

[Prev in Thread] Current Thread [Next in Thread]