"nmkdir" in the Bourne shell at a Unix machine near you.

Ephrayim J. Naiman naiman at pegasus.UUCP
Mon Sep 2 12:22:47 AEST 1985


	<munch, munch>

>	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



More information about the Comp.sources.unix mailing list