question-- Bourne (and C) SHELL
Arthur David Olson
ado at elsie.UUCP
Mon Aug 25 05:25:08 AEST 1986
> 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 at seismo.ARPA
DEC, VAX, Elsie & Ado are Digital, Borden & Ampex trademarks.
More information about the Comp.unix.wizards
mailing list