h printf %s.
Andres P
hat case, the for loop will iterate over "$@".
Andres P
Apparently this list doesn't set the Reply-To header, apologies.
-- Forwarded message --
From: Andres P
Date: Wed, Jun 23, 2010 at 12:10 AM
Subject: Re: How not to inherit any environment variable from parent process?
To: Peng Yu
On Wed, Jun 23, 2010 at 12:02 AM, Pe
On Tue, Jun 22, 2010 at 2:21 PM, Chet Ramey wrote:
> On 6/22/10 12:51 AM, Andres P wrote:
>> Bash 4.1 does not set the ERR trap:
>
> It does, but remember that the ERR trap is only executed under the
> circumstances that would cause the shell to exit when set -e is enabled.
>
here 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
ly following a while or until keyword, part of the test in an
if statement, part of a && or ⎪⎪ list, or if the command's return value is
being inverted via !
Andres P