[CentOS] Why does 'test -f' and 'test -e' return true on a (hidden) file that doesn't exist?
Marko A. Jennings
markobiz at bluegargoyle.comMon Mar 31 20:43:28 UTC 2008
- Previous message: [CentOS] Why does 'test -f' and 'test -e' return true on a (hidden) file that doesn't exist?
- Next message: [CentOS] Why does 'test -f' and 'test -e' return true on a (hidden) file that doesn't exist?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, March 31, 2008 4:37 pm, Tim Alberts wrote: > Why does 'test -f' and 'test -e' return true on a (hidden) file that > doesn't exist? > > *> cat /home/talberts/.forward* > cat: /home/talberts/.forward: No such file or directory > *> test -f /home/talberts/.forward ;echo $?* > 1 > *> test -e /home/talberts/.forward ;echo $?* > 1 0 = exists 1 = does not exist
- Previous message: [CentOS] Why does 'test -f' and 'test -e' return true on a (hidden) file that doesn't exist?
- Next message: [CentOS] Why does 'test -f' and 'test -e' return true on a (hidden) file that doesn't exist?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list