Re: How to supply a string with space in it as parameter to a function?

2010-06-23 Thread Andres P
h printf %s. Andres P

Re: How to supply a string with space in it as parameter to a function?

2010-06-23 Thread Andres P
hat case, the for loop will iterate over "$@". Andres P

Fwd: How not to inherit any environment variable from parent process?

2010-06-22 Thread 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

Re: bash 3.2.51, ERR traps and subshells

2010-06-22 Thread Andres P
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. >

Re: bash 3.2.51, ERR traps and subshells

2010-06-22 Thread Andres P
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

bash 3.2.51, ERR traps and subshells

2010-06-21 Thread 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