Tried to reproduce in debian testing squeeze, bash 4.1.5: and...@debian:~$ bash -c 'trap '\''echo "BC $BASH_COMMAND"'\'' ERR; false foo' BC false foo and...@debian:~$ echo $? 1 and...@debian:~$
I think everything works.
Tried to reproduce in debian testing squeeze, bash 4.1.5: and...@debian:~$ bash -c 'trap '\''echo "BC $BASH_COMMAND"'\'' ERR; false foo' BC false foo and...@debian:~$ echo $? 1 and...@debian:~$
I think everything works.