Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84 SMI; site sun.uucp
Path: utzoo!watmath!clyde!burl!ulysses!ucbvax!decvax!decwrl!sun!guy
From: guy@sun.uucp (Guy Harris)
Newsgroups: net.unix-wizards
Subject: Re: Re: In sh, is '[' a portable synonym
Message-ID: <2939@sun.uucp>
Date: Sat, 26-Oct-85 19:35:25 EST
Article-I.D.: sun.2939
Posted: Sat Oct 26 19:35:25 1985
Date-Received: Mon, 28-Oct-85 04:15:54 EST
References: <313@bdaemon.UUCP> <13400016@mirror.UUCP> <132@oracle.UUCP>
Organization: Sun Microsystems, Inc.
Lines: 19

> '/bin/test' is a *program* and '[]' is intrepreted by the shell in all
> Sys III (and greater) Bourne shells.

Yes, but "test" (as opposed to "/bin/test") is interpreted by the shell in
all Sys III (and greater) Bourne shells!  Yes, this means

	1) you can't run a program in your current directory named "test" by
	   typing "test" - you have to type "./test"

and

	2) even if "/bin" is the first directory in your PATH containing
	   a program called "test", "/bin/test" and "test" do different
	   things.

This may seem strange, but since it's true its strangeness is irrelevant to
the discussion.

	Guy Harris