Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15573
| From | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: [FR] save command times and exit status in history automatically |
| Date | 2019-11-07 15:09 -0500 |
| Message-ID | <mailman.847.1573157347.13325.bug-bash@gnu.org> (permalink) |
| References | <CAKOZuevfhS7veH9+GSc=8StpgrA_vy59Y2fYYGhMDk0OPZb69Q@mail.gmail.com> <8e19b0fc-4183-90fa-b067-9da636998d6f@case.edu> |
On 11/5/19 12:49 PM, Daniel Colascione wrote: > Right now, bash history saves only the command line actually executed. This isn't quite the case. What it saves is the line returned from readline, before it's expanded or executed. > Why not also, optionally, save command execution times and exit > statuses? This information is practically free to collect. Because by the time you gather this information, the command has already been saved completely. There have been various proposals to extend the timestamp with additional information, but it's all data you can gather when the timestamp is saved before the command is executed. -- ``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/
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: [FR] save command times and exit status in history automatically Chet Ramey <chet.ramey@case.edu> - 2019-11-07 15:09 -0500
csiph-web