bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: exit status bug


From: Brian J. Fox
Subject: Re: exit status bug
Date: Wed, 20 Mar 2002 12:04:40 -0800

Bug is not present on newer versions, such as 2.04.21, shipped with
RH7.1.

But thanks for the bug report, Todd.

Brian

   Envelope-to: address@hidden
   Delivery-date: Wed, 20 Mar 2002 11:17:49 -0800
   Date: Wed, 20 Mar 2002 11:12:11 -0800 (PST)
   From: Tom Lord <address@hidden>


   This script illustrates an exit status bug in GNU bash labeled 2.02.1.

           false 
           echo $?
           ! false
           echo $?
           ( false )
           echo $?
           ( ! false )
           echo $?

   Output from the script should be:

           1
           0
           1
           0

   but is instead:

           1
           0
           1
           1



reply via email to

[Prev in Thread] Current Thread [Next in Thread]