bug-bash
[Top][All Lists]
Advanced

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

file test bug in bash 3.1


From: Zackary Deems
Subject: file test bug in bash 3.1
Date: Mon, 22 May 2006 23:17:12 -0400
User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)

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.




reply via email to

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