Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!caip!clyde!cbatt!ukme!david From: david@ukme.UUCP (David Herron, NPR Lover) Newsgroups: net.unix-wizards Subject: Re: question-- Bourne (and C) SHELL Message-ID: <4263@ukme.UUCP> Date: Mon, 1-Sep-86 15:06:45 EDT Article-I.D.: ukme.4263 Posted: Mon Sep 1 15:06:45 1986 Date-Received: Mon, 8-Sep-86 19:12:08 EDT References: <3220@brl-smoke.ARPA> Reply-To: david@ukme.UUCP (David Herron, NPR Lover) Organization: U of Kentucky, Mathematical Sciences Lines: 30 In article <3220@brl-smoke.ARPA> swa@COMET.LCS.MIT.EDU (Steven Augart) writes: > if ls foo > then > ; > else > echo "foo not found" > endif Or: #! /bin/sh # not.sh -- Logical NOT of the return status of a command # # USAGE: not command # if $@; then exit 1 else exit 0 fi Allowing one to say: if not rsh e /bin/true; then echo ^G^Ge is down^G^G fi -- David Herron, cbosgd!ukma!david, david@UKMA.BITNET, david@ms.uky.csnet (I'm also "postmaster" at all those addresses) (And "news" and "netnews" and "uucp" and ....)