On 1/11/22 6:24 AM, Tathastu Pandya via Bug reports for the GNU Bourne
Again SHell wrote:
> Just as PROMPT COMMAND thats get executed every time before any commamd. Is 
> there a way to execute predefined command after every command is executedeg. 
> Automatically record the exit status of currentky executed command to history 
> file immeduately after a command ends or ctrl+c or any break or exit

I'd argue that you're looking at it wrong. The DEBUG trap is your pre-
execution hook, and PROMPT_COMMAND is post-execution (in an interactive
shell).

-- 
``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/

Reply via email to