On Thu, Nov 02, 2017 at 09:47:24AM -0400, Greg Wooledge wrote:
> Quoting failure.
>
> wooledg:~$ unset FOO
> wooledg:~$ if [ -d "${FOO:=""}" ]; then echo yes; else echo no; fi
> no
>
> With quotes the command is transformed to
>
> [ -d "" ]
>
> Without quotes it becomes
>
> [ -d ]
>
> A singl
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 wi