On 4/8/25 3:55 PM, Rafael Fontenelle via Bug reports for the GNU Bourne
Again SHell wrote:
Translating bash 5.3-pre1, I faced a string change in trap's help message
that I didn't quite understand. The phrase in 5.3-pre1:
---
If a SIGNAL_SPEC is DEBUG, ACTION is executed before every simple command
and selected other commands.
---
The "and selected other commands" part was added in this new release.
Can this please be clarified?
The DEBUG trap is executed before simple commands and several compound
commands: for, arithmetic for, select, case, before the first command in
a shell function, [[ conditional commands, and (( arithmetic commands.
This is documented in the man page, but I feel like it's overkill to put
it in the help text.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/