sh feature: redirection of flow control bug

Barton E. Schaefer schaefer at ogcvax.UUCP
Fri Jan 29 03:09:09 AEST 1988


A working version of the script in question:

#! /bin/sh
if [ ! -d "$1" ]
then    echo "'$1' not a dir"
        exit 1
else	exit 0
fi >&2 || exit 1
cd $1
echo "hello from `pwd`"
exit 0
-- 
Bart Schaefer			CSNET:	schaefer at cse.ogc.edu
				UUCP:	...{tektronix,verdix}!ogcvax!schaefer
"You can lead a yak to water, but you can't teach an old dog to make a silk
purse out of a pig in a poke."			-- Opus



More information about the Comp.unix.questions mailing list