Re: bash feature suggestion, show command RC codes in history

2023-05-03 Thread alex xmb ratchev
On Wed, May 3, 2023, 16:25 Chet Ramey wrote: > On 4/23/23 1:56 PM, Mark Schlegel wrote: > > Bash has a history function, it would be useful if 'history' would show > the exit codes (return codes) from all commands: > > Thanks for the proposal. There have been various suggestions over the years >

Re: bash feature suggestion, show command RC codes in history

2023-05-03 Thread Chet Ramey
On 4/23/23 1:56 PM, Mark Schlegel wrote: Bash has a history function, it would be useful if 'history' would show the exit codes (return codes) from all commands: Thanks for the proposal. There have been various suggestions over the years about additional information attached to each history en

bash feature suggestion, show command RC codes in history

2023-04-23 Thread Mark Schlegel
Bash has a history function, it would be useful if 'history' would show the exit codes (return codes) from all commands: For example, showing the RC values in a new column after the history number 4751 0 2023-04-10 04:49:48 cat kernel-vanilla.repo 4752 0 2023-04-10 04:50:30 rm kernel-vanilla.re