Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site isosvax.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!hao!noao!terak!asuvax!isosvax!oer From: oer@isosvax.UUCP (Ed Reeder) Newsgroups: net.unix-wizards Subject: Re: In sh, is '[' a portable synonym for 'test'? Message-ID: <242@isosvax.UUCP> Date: Mon, 4-Nov-85 13:30:00 EST Article-I.D.: isosvax.242 Posted: Mon Nov 4 13:30:00 1985 Date-Received: Fri, 15-Nov-85 20:40:38 EST References: <482@phri.UUCP> <2887@sun.uucp> <313@bdaemon.UUCP>, <2908@sun.uucp> Organization: Intel Corp, Phoenix (Deer valley), AZ Lines: 11 Another reason '[' is used instead of test is it prevents problems when the user has a file named 'test' in his current directory AND his search path searches his current directory before /bin (for systems that don't have test built in to the shell). While everyone should reset PATH to avoid the problem, we don't (as evidenced by net.sources). Ed Reeder Intel Corporation Phoenix