delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/07/22/09:28:12

Sender: rich AT phekda DOT freeserve DOT co DOT uk
Message-ID: <39799EF9.9F9D3E89@phekda.freeserve.co.uk>
Date: Sat, 22 Jul 2000 14:17:45 +0100
From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.14 i586)
X-Accept-Language: de,fr
MIME-Version: 1.0
To: DJGPP workers <djgpp-workers AT delorie DOT com>
CC: Kevin Ryde <user42 AT zip DOT com DOT au>, "tege AT swox DOT se" <tege AT swox DOT se>
Subject: Bug in bash 2.03's handling of compound commands?
Reply-To: djgpp-workers AT delorie DOT com

Hello.

I think there may be a bug in bash 2.03's handling of compound commands.
For instance, if 'bob' does not exist, then you'd expect $? to be set to
127 after trying to execute it. However, I found the following:

DJGPP: "(bob); echo $?" -> 0 displayed
Linux: "(bob); echo $?" -> 127 displayed

For comparison:

    bob; echo $?

produces 127 for both DJGPP's and Linux's bash.

If this problem has been discussed before, I apologise for bringing it up
again - I don't remember & can't find it being discussed.

Thanks, bye, Rich

-- 
Richard Dawe
[ mailto:richdawe AT bigfoot DOT com | http://www.bigfoot.com/~richdawe/ ]

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019