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    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/

Reply via email to