Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site pegasus.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!pegasus!naiman From: naiman@pegasus.UUCP (Ephrayim J. Naiman) Newsgroups: net.sources Subject: Re: "nmkdir" in the Bourne shell at a Unix machine near you. Message-ID: <2558@pegasus.UUCP> Date: Sun, 1-Sep-85 22:22:47 EDT Article-I.D.: pegasus.2558 Posted: Sun Sep 1 22:22:47 1985 Date-Received: Tue, 3-Sep-85 00:50:27 EDT References: <1052@sdcsvax.UUCP> <309@cxsea.UUCP> <226@tikal.UUCP> Organization: AT&T Information Systems, Lincroft NJ Lines: 17 > if cd $d > then : ok, go on > else > echo "Error, can't chdir to $d in dirpath $arg" > exit 1 > fi I think in the bourne shell a bad cd will terminate the shell script no matter what its return code. Therefore, as soon as a bad cd occurs, termination before any test. -- ==> Ephrayim J. Naiman @ AT&T Information Systems Laboratories (201) 576-6259 Paths: [ihnp4, allegra, mtuxo, maxvax, cbosgd, lzmi, ...]!pegasus!naiman