[Bug 3943] New: error in testing file of existence

bugzilla at busybox.net bugzilla at busybox.net
Fri Jul 1 10:35:26 UTC 2011


https://bugs.busybox.net/show_bug.cgi?id=3943

           Summary: error in testing file of existence
           Product: Busybox
           Version: 1.18.x
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P5
         Component: Standard Compliance
        AssignedTo: unassigned at busybox.net
        ReportedBy: mbr at gmx.eu
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0


The following script fails:

#!/bin/ash

FILE=

if [[ -e ${FILE} ]]
then
    echo "found file: \`${FILE}'"
else
    echo "did not found file: \`${FILE}'"
fi

The test is always true!! So it says: found file `'

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list