This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: The binary "[.exe"
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Buchbinder, Barry (NIH/NIAID) [E] on 3/24/2006 7:59 PM:
>
> Are they supposed to be different?
Yes. "[" requires a final "]" argument, while "test" does not. And POSIX
requires that "test --help" and "[ --help ]" both return success (0)
without output. Only [ can print a help message, and only when you use a
syntax that is not specified by POSIX (namely, "[ --help". "man test"
shows 5 forms (2 for test and 3 for [) for that very reason.
- --
Life is short - so eat dessert first!
Eric Blake ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEJL+c84KuGfSFAYARAs6wAKDVa1Rk+9PvJWwhIRpb3QcVDWoT2gCgrtTd
76Q+qzIZMzu0mYnCJqhY9oE=
=SRDa
-----END PGP SIGNATURE-----
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/