Package: bash Version: 3.1dfsg-8 According to the manual:
BASH_COMMAND The command currently being executed or about to be executed, unless the shell is executing a command as the result of a trap, in which case it is the command executing at the time of the trap. But: mariner:~> bash -c 'trap '\''echo "BC $BASH_COMMAND"'\'' ERR; false foo' BC echo "BC $BASH_COMMAND" mariner:~> echo $? 1 mariner:~> I think the correct output is: BC false foo This would be much more helpful and in accordance with the intent, which appears to be that the trap handler can find out what was going on by looking at BASH_COMMAND. This seems to have been reported previously to gnu.bash.bug but without response from upstream: http://www.archivum.info/gnu.bash.bug/2006-08/msg00033.html Regards, Ian. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]