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 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 CC: Kevin Ryde , "tege AT swox DOT se" Subject: Bug in bash 2.03's handling of compound commands? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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/ ]