Re: Why does 'test -f' and 'test -e' return true on a (hidden) file that doesn't exist?

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



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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux