GNU bug report logs -
#15278
test: favor -a as binary op, with three arguments and !
Previous Next
Reported by: Eric Blake <eblake <at> redhat.com>
Date: Thu, 5 Sep 2013 17:43:01 UTC
Severity: normal
Tags: confirmed, fixed
Merged with 33097
Done: Bernhard Voelker <mail <at> bernhard-voelker.de>
Bug is archived. No further changes may be made.
Full log
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
-----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 <at> 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-----
This bug report was last modified 6 years and 266 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.