Path: utzoo!mnetor!uunet!tektronix!reed!percival!littlei!ogcvax!schaefer From: schaefer@ogcvax.UUCP (Barton E. Schaefer) Newsgroups: comp.unix.questions Subject: Re: sh feature: redirection of flow control bug Message-ID: <1544@ogcvax.UUCP> Date: 28 Jan 88 17:09:09 GMT References: Reply-To: schaefer@ogcvax.UUCP (Barton E. Schaefer) Organization: Oregon Graduate Center, Beaverton, OR Lines: 16 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@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