bug-bash
[Top][All Lists]
Advanced

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

Re: bash 3.2.51, ERR traps and subshells


From: Andres P
Subject: Re: bash 3.2.51, ERR traps and subshells
Date: Tue, 22 Jun 2010 10:53:10 -0430

On Tue, Jun 22, 2010 at 4:45 AM, Stefano Lattarini
<address@hidden> wrote:
>> ++ false           # Subshell false
>> +++ TRIGGERED_ERR  # Ignores outer "|| true"
> No, it doesen't even see it; the script seen by the subshell consists
> just of the string "false", so there is no `||' the subshell can see.
> And this seems IMHO quite natural if you remember that the parent
> shell and the subshell are run in two different proceses.
>

Thanks, makes sense.

So this is a regression with bash 4? Because as I mentioned, the ERR trap does
not trigger at any point in this example.

Andres P



reply via email to

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