On Tue, Jun 22, 2010 at 4:45 AM, Stefano Lattarini <stefano.lattar...@gmail.com> 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