On 2/5/15 8:18 AM, Debarshi Ray wrote:

> What do you think? Having bash offer a way to reliably find the last
> foreground command interactively run by the user would be helpful.
> 

I took a quick look at this, and I think what you want is $BASH_COMMAND
unless the last command is `fg'?  If that's correct, we can think about
a way to make that information available.

Chet

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

Reply via email to