Re: file test bug in bash 3.1

2006-05-23 Thread Chet Ramey
Zackary Deems wrote: > echo "blah" >/tmp/blah > ln -s /tmp/blah /tmp/blah.link > if [[ -f "/tmp/blah.link" ]] > then >echo "/tmp/blah.link is a regular file" > else >echo "/tmp/blah.link is NOT a regular file" > fi > > links now match for both links and regular files. This plays hell with

Re: file test bug in bash 3.1

2006-05-22 Thread Bob Proulx
Zackary Deems wrote: > echo "blah" >/tmp/blah > ln -s /tmp/blah /tmp/blah.link > if [[ -f "/tmp/blah.link" ]] > then >echo "/tmp/blah.link is a regular file" > else >echo "/tmp/blah.link is NOT a regular file" > fi Thank you for the very nice and concise test case. > links now match for b

file test bug in bash 3.1

2006-05-22 Thread Zackary Deems
echo "blah" >/tmp/blah ln -s /tmp/blah /tmp/blah.link if [[ -f "/tmp/blah.link" ]] then echo "/tmp/blah.link is a regular file" else echo "/tmp/blah.link is NOT a regular file" fi links now match for both links and regular files. This plays hell with quite a bit of existing code. _