Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site moncol.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!mhuxn!mhuxr!mhuxt!houxm!vax135!petsd!moncol!john From: john@moncol.UUCP (John Ruschmeyer) Newsgroups: net.unix-wizards Subject: Re: In sh, is '[' a portable synonym for 'test'? Message-ID: <531@moncol.UUCP> Date: Tue, 15-Oct-85 10:26:02 EDT Article-I.D.: moncol.531 Posted: Tue Oct 15 10:26:02 1985 Date-Received: Thu, 17-Oct-85 00:13:28 EDT References: <482@phri.UUCP> <2887@sun.uucp> Organization: Monmouth College, West Long Branch, NJ 07764 Lines: 23 >From: guy@sun.uucp (Guy Harris) >Message-ID: <2887@sun.uucp> >Organization: Sun Microsystems, Inc. > >V7 systems where /bin/[ isn't a link to /bin/test. Any V7 or post-V7 system >can be made to support "if [ ]" as equivalent to "if test >", but the S5 manual properly warns you that not all systems have >been made to support it. If you want to make something portable, and you >don't think you can convince every recipient of the program to make that >link, you're best off not using "[ ... ]". Any good reason *NOT* to make the link? -- Name: John Ruschmeyer US Mail: Monmouth College, W. Long Branch, NJ 07764 Phone: (201) 222-6600 x366 UUCP: ...!vax135!petsd!moncol!john ...!princeton!moncol!john ...!pesnta!moncol!john "It all started out as a mild curiousity in a junkyard... and now it's turned out to be quite a spirit of adventure."