Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!elsie!ado From: ado@elsie.UUCP (Arthur David Olson) Newsgroups: net.unix-wizards Subject: Re: question-- Bourne (and C) SHELL Message-ID: <6196@elsie.UUCP> Date: Sun, 24-Aug-86 15:25:08 EDT Article-I.D.: elsie.6196 Posted: Sun Aug 24 15:25:08 1986 Date-Received: Sun, 24-Aug-86 19:46:37 EDT References: <3257@brl-smoke.ARPA> Organization: NIH-LEC, Bethesda, MD Lines: 19 Summary: case > I haven't seen any mention of our Bourne shell friend "||". How about > (assuming ls returns correct status): > > ls foo || echo foo does not exist For the truly esoterically minded (especially those who don't want to run "ls" or "test" or any other non-built-ins on BSD systems): case fo[o] in foo) ;; *) echo foo does not exist ;; :-) ;; esac -- UNIX is an AT&T Bell Laboratories trademark (or an AT&T registered trademark). -- UUCP: ..decvax!seismo!elsie!ado ARPA: elsie!ado@seismo.ARPA DEC, VAX, Elsie & Ado are Digital, Borden & Ampex trademarks.