On 14 Sep 2000 13:55 Stephen King wrote:
>What is the echo command that returns a 0 if the previous command ran
>correctly?
Assuming bash shell:
echo $?
--
Anthony E. Greene <[EMAIL PROTECTED]> <http://www.pobox.com/~agreene/>
PGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA
27;s not 'bleah' file.
Etienne
Stephen King wrote:
> What is the echo command that returns a 0 if the previous command ran
> correctly?
___
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list
echo $?
-Original Message-
From: Stephen King [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 14, 2000 12:55 PM
To: [EMAIL PROTECTED]
Subject: echo command
What is the echo command that returns a 0 if the previous command ran
correctly
Stephen King wrote:
> What is the echo command that returns a 0 if the previous command ran
> correctly?
echo $? will return the return code of the previously run command. 0 if
successful.
Bret
___
Redhat-list mailing list
[EMAIL PRO
On Thu, Sep 14, 2000 at 10:55:17AM -0700, Stephen King wrote:
> What is the echo command that returns a 0 if the previous command ran
> correctly?
echo $?
But I find it more useful to use other constructs...
program_foo && echo "It ran fine"
--
Steve Borho
What is the echo command that returns a 0 if the previous command ran
correctly?
BEGIN:VCARD
VERSION:2.1
N:King;Stephen
FN:Stephen King
ORG:Information Anywhere, Inc
TEL;WORK;VOICE:800-585-3805
TEL;CELL;VOICE:209-304-3459
TEL;WORK;FAX:209-223-1048
URL:
URL:http://www.infoany.net
EMAIL;PREF