[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: -a vs -e
From: |
Chet Ramey |
Subject: |
Re: -a vs -e |
Date: |
Thu, 05 Sep 2013 15:33:08 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 9/5/13 12:45 PM, Eric Blake wrote:
> The POSIX wording states for 3-argument tests
> (http://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html):
>
> ? If $2 is a binary primary, perform the binary test of $1 and $3.
> ? If $1 is ?!?, negate the two-argument test of $2 and $3.
> ? If $1 is ?(? and $3 is ?)?, perform the unary test of $2.
>
> The first two bullets both apply to your situation, but it can be
> assumed that the ordering of the bullets is significant.
Bash assumes that the order of the bullet points in the Posix description
of `test' implies prioritization.
- --
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlIo3HMACgkQu1hp8GTqdKs9ygCfRp7ouDNHqgi0/7wGQLOOBa34
JWIAmwTKHIgeM0pCYAGP56x55dsmSo0L
=xMCV
-----END PGP SIGNATURE-----
- -a vs -e, kneufeld, 2013/09/05
- Re: -a vs -e, Greg Wooledge, 2013/09/05
- Re: -a vs -e, Eric Blake, 2013/09/05
- Re: -a vs -e, Eric Blake, 2013/09/05
- Re: -a vs -e,
Chet Ramey <=
- Re: -a vs -e, Chet Ramey, 2013/09/05
- Re: -a vs -e, Dan Douglas, 2013/09/07