On Mon, 2019-04-15 at 17:31 -0400, Chet Ramey wrote: > You can use $HISTCMD with a slight fix that's now in the devel branch.
That doesn't increment when you use HISTCONTROL=erasedups AFAICT but the command number does increment. Also HISTCMD doesn't start at zero. > The Korn shell uses values > 256 to denote `internal' shell exit statuses, > but that violates POSIX. I wonder if bash could set an additional variable to indicate if $? is from a normal exit, a signal exit, a shell keystroke etc, as well as a corresponding equivalent array that is about PIPESTATUS. > I'll keep that in mind for a future version. Thanks for that. -- bye, pabs https://bonedaddy.net/pabs3/
signature.asc
Description: This is a digitally signed message part