Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Aug 2002 14:53:40 +1000
From:      Edwin Groothuis <edwin@mavetju.org>
To:        "Douglas A. Maske" <maske@maske-tech.com>
Cc:        questions@freebsd.org
Subject:   Re: Stupid Shell Script Question
Message-ID:  <20020822045340.GI785@k7.mavetju>
In-Reply-To: <20020821234630.B33952-100000@maske.org>
References:  <20020821234630.B33952-100000@maske.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Aug 21, 2002 at 11:48:18PM -0500, Douglas A. Maske wrote:
>    I have forgotten how to show only the exit status 0 successful or >0
> unsuccessful in a #/bin/sh script.

Not sure if I got your question, but....

[~] edwin@k7>sh
[\w] \u@k7>exit 2
[~] edwin@k7>echo $?
2
[~] edwin@k7>

should shine a light for you.

Edwin
-- 
Edwin Groothuis      |            Personal website: http://www.MavEtJu.org
edwin@mavetju.org    |    Weblog: http://www.mavetju.org/weblog/weblog.php 
bash$ :(){ :|:&};:   | Interested in MUDs? http://www.FatalDimensions.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020822045340.GI785>