Is there something I am mis-understanding about $BASH_COMMAND? The manpage says:
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. However: $ trap 'echo $BASH_COMMAND' ERR $ false echo $BASH_COMMAND So, in the trap, $BASH_COMMAND seems to contain the line command being executed in the trap. I would have expected to see: $ trap 'echo $BASH_COMMAND' ERR $ false false given the explanation in the manpage. I must be misunderstanding something. b. -- My other computer is your Microsoft Windows server. Brian J. Murrell
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash