Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15573 > unrolled thread

Re: [FR] save command times and exit status in history automatically

Started byChet Ramey <chet.ramey@case.edu>
First post2019-11-07 15:09 -0500
Last post2019-11-07 15:09 -0500
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [FR] save command times and exit status in history automatically Chet Ramey <chet.ramey@case.edu> - 2019-11-07 15:09 -0500

#15573 — Re: [FR] save command times and exit status in history automatically

FromChet Ramey <chet.ramey@case.edu>
Date2019-11-07 15:09 -0500
SubjectRe: [FR] save command times and exit status in history automatically
Message-ID<mailman.847.1573157347.13325.bug-bash@gnu.org>
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/

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web