bug-bash
[Top][All Lists]
Advanced

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

Re: bash 3.2 vs 3.0


From: Chet Ramey
Subject: Re: bash 3.2 vs 3.0
Date: Thu, 05 Jan 2012 20:58:49 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0

On 1/5/12 5:12 AM, Dave wrote:
> Hi all,
> 
> Recently upgraded to 3.2 and noticed some differences in a lot of my
> scripts, consider the following example:

You might have a tough time getting help on this.  Bash-3.2 was released
over five years ago; bash-3.0 two years before that.  I point people to
bash-4.2, the current version, which was released over a year ago.

The CHANGES file from bash-3.2 might be helpful.  I found in the changes
between bash-3.1 and bash-3.2:

z.  The inheritence of the DEBUG, RETURN, and ERR traps is now dependent only
    on the settings of the `functrace' and `errtrace' shell options, rather
    than whether or not the shell is in debugging mode.

It looks like the failing pipeline triggered the ERR trap, which bash-3.2
inherits (correctly) and bash-3.[01] did not.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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