bug-bash
[Top][All Lists]
Advanced

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

Re: Test -a and -e


From: Jan Schampera
Subject: Re: Test -a and -e
Date: Tue, 10 Nov 2009 06:25:40 +0100
User-agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090707)

Chet Ramey schrieb:

>> Code:
>> $ [ ! -a /bin/bash ] && echo "Doesn't exist"; [ -a /bin/bash ] && echo
>> "Exists"
>>
>> Output:
>> Doesn't exist
>> Exists


> Please read the Bash FAQ, question E1.  The behavior of test depends on
> the number of arguments; the rules are in the manual page.
> 
> Chet

"The operators -a and -o are considered binary operators for the purpose
of the 3 Arg case."

Forgive my ignorance :)

Jan




reply via email to

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