delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/03/24/22:57:30

X-Spam-Check-By: sourceware.org
Message-ID: <4424BF9E.4020502@byu.net>
Date: Fri, 24 Mar 2006 20:57:18 -0700
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: The binary "[.exe"
References: <31DDB7BE4BF41D4888D41709C476B6570246AEAE AT NIHCESMLBX5 DOT nih DOT gov>
In-Reply-To: <31DDB7BE4BF41D4888D41709C476B6570246AEAE@NIHCESMLBX5.nih.gov>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

-----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 AT byu DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019