Subject: Bug with Test Command
From: "Mathi.C" <[email-masked]>
To: [email-masked]
Date: Wed, 28 Dec 2011 00:12:49 -0600
List-Id: <debbugs-submit.debbugs.gnu.org>

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