Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site hadron.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!seismo!rlgvax!hadron!jsdy From: jsdy@hadron.UUCP (Joseph S. D. Yao) Newsgroups: net.unix-wizards Subject: Re: Re: In sh, is '[' a portable synonym Message-ID: <63@hadron.UUCP> Date: Sat, 9-Nov-85 11:38:46 EST Article-I.D.: hadron.63 Posted: Sat Nov 9 11:38:46 1985 Date-Received: Mon, 11-Nov-85 05:43:30 EST References: <313@bdaemon.UUCP> <13400016@mirror.UUCP> <132@oracle.UUCP> Reply-To: jsdy@hadron.UUCP (Joseph S. D. Yao) Organization: Hadron, Inc., Fairfax, VA Lines: 20 Summary: '[' i s linked to test on s5. In article <132@oracle.UUCP> abbajay@oracle.UUCP (Dave Abbajay) writes: >I also have no REAL arguments against Guy's comments save one. '/bin/test' >is a *program* and '[]' is intrepreted by the shell in all Sys III (and >greater) Bourne shells. [Disclaimer:] I don't have the sV Bourne shell code or the Korn shell code in front of me; however, I don't remember '[' being treated as a special command. I do know that 'test' is linked to '['. It does not seem logical to have it both ways, especially when one can be changed without changing the other. (Did I s a y that everything progrmmers do is logical?) References: VAX-11/780 running s5r1v1, s5r1v2, s5r2v1, s5r2v2. (Note: PLEASE reference the system you're talking about. I don't know whether D.A. was talking about vaxen (prob'ly) or one of the myriad 680X0 systems, or 3B's, or what.) -- Joe Yao hadron!jsdy@seismo.{CSS.GOV,ARPA,UUCP}