[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug in command "test"
From: |
Abhishek Verma |
Subject: |
Bug in command "test" |
Date: |
Thu, 18 Sep 2008 16:34:27 +0530 |
Hi,
I have been training UNIX for a few months, and have come across a bug (I guess
so)
With test command.
The problem is, with -f option it reports a symbolic link as a regular file.
For ex: say there is a file "f1" of type symbolic link, then
If [ -f f1 ]; then
Echo reg file
Else
Echo Not reg file
Fi
The above code should give output as : "Not reg file"
But it happens to print "reg file".
I hope you would be able to help me with this.
Thanks and Regards,
Abhishek Kumar Verma
________________________________
DISCLAIMER
The information transmitted is intended exclusively for the person or entity to
which it is addressed and may contain confidential and/or privileged material.
Any review, retransmission, dissemination or other use of, or taking of any
action in reliance upon, this information by persons or entities other than the
intended recipient is prohibited. If you are not the intended recipient or have
received this mail in error, please notify the sender immediately and delete
the material from your system.
- Bug in command "test",
Abhishek Verma <=