Re: ERR trap inheritance in command substitution

2010-01-10 Thread DennisW
since the documentation of 'set -E' promises inheritance of the ERR trap for subshell contexts. The script below illustrates this behavior as the trap action err_handler() is not called. Is this behaviour intended? Even if so, I'd like to say that I would find ERR trap inheritance for command

ERR trap inheritance in command substitution

2010-01-08 Thread Stefan Götz
for subshell contexts. The script below illustrates this behavior as the trap action err_handler() is not called. Is this behaviour intended? Even if so, I'd like to say that I would find ERR trap inheritance for command substitution extremely useful :-) Cheers, Stefan #!/bin/bash

Re: ERR trap inheritance in command substitution

2010-01-08 Thread Chet Ramey
of 'set -E' promises inheritance of the ERR trap for subshell contexts. The script below illustrates this behavior as the trap action err_handler() is not called. Is this behaviour intended? Even if so, I'd like to say that I would find ERR trap inheritance for command substitution extremely useful