[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feature request

From: Chet Ramey
Subject: Re: Feature request
Date: Tue, 11 Jan 2022 14:27:37 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.4.1

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

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]