Bug#495764: BASH_COMMAND not useable as intended in a trap handler

2010-11-30 Thread Андрей Зайцев
"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." Sorry, the version is wrong. I used 4.1-3.

Bug#495764: BASH_COMMAND not useable as intended in a trap handler

2010-11-30 Thread Андрей Зайцев
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.

Bug#495764: BASH_COMMAND not useable as intended in a trap handler

2008-08-20 Thread Ian Jackson
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 t