|
Hi Ikon,
That is interesting that similar code appears to be working differently on our two systems. I am using a Mac running Leopard. I wonder if there are nuances between our bash? On my system there is the directory: /Users/msb65/test_data/Olive
However, the test doesnt error when I substitute a lowercase "o" on "Olive":
$ dir='/Users/msb65/test_data/Olive'
$ if [ -d $dir ]; then echo hello; fi
hello
dir='/Users/msb65/test_data/olive'
$ if [ -d $dir ]; then echo hello; fi
hello
Why is this?
Mike
|