[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Default time for unmarked history lines

From: Reuben Thomas
Subject: Default time for unmarked history lines
Date: Thu, 7 Jan 2016 16:33:32 +0000

Would it be better to have the default time for unmarked history lines to be the epoch rather than the current time?

I recently added time recording, via HISTTIMEFORMAT, to my bash history. It is odd that now when listing it, all the old lines have the current time and date; in particular, it violates the expectation that the history will (unless I have done odd things to it) be ordered monotonically.

It would seem more natural to use the time of the epoch.

I have worked around this problem by annotating all the old lines with "#1" (I was a bit surprised that "#0" didn't work, I learned something new about UNIX time!).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]