Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!think!husc6!harvard!humming!arturo From: arturo@humming.UUCP (Arturo Perez) Newsgroups: net.unix,net.unix-wizards Subject: question-- Bourne (and C) SHELL Message-ID: <150@humming.UUCP> Date: Thu, 14-Aug-86 10:12:45 EDT Article-I.D.: humming.150 Posted: Thu Aug 14 10:12:45 1986 Date-Received: Thu, 14-Aug-86 21:44:49 EDT References: <1751@ittatc.ATC.ITT.UUCP> <7028@utzoo.UUCP> Reply-To: arturo@humming.UUCP (Arturo Perez) Organization: Kurzweil A.I. Waltham, Mass. Lines: 25 Xref: mnetor net.unix:5195 net.unix-wizards:7541 Here's something I've wanted to do for a while but I can't seem to find the way to do it. In the csh you can do something like ls foo if (! $status) then echo "foo exists" endif The key thing here is the ability to NOT the value of status. How is this similar thing done in Bourne shell. if ! ls foo then echo foo does not exist fi In summary, how can I take the logical NOT of a command's return value in the Bourne shell (which is God's gift to U**X :-)? -- "Life is but a dream" - Lope de Vega "...for some and a NIGHTMARE for others!" Merlin, "Excalibur", the movie Disclaimer? What disclaimer? I can back everything up with as much drivel as you like!