bug-coreutils
[Top][All Lists]
Advanced

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

bug#10390: Bug with Test Command


From: Mathi.C
Subject: bug#10390: Bug with Test Command
Date: Wed, 28 Dec 2011 00:12:49 -0600

Hi,

I have come across a scenario where test command resulted wrong result than
expected.

Please follow the below steps to simulate the scenario.
1. Define a variable to blank/null
     export a=
2. Test the parameter with test command on file exists
     test -f $a
3. Echo the result of the last executed command
    echo $?

Result we get is "0" -success, whereas the test command (step 2) should
error with parameter expected after " test -f".

-- 
Regards,
Mathi.C


reply via email to

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