|
From: | Chris F.A. Johnson |
Subject: | Re: multi-line commands in the history get split when bash is quit |
Date: | Sat, 5 Feb 2011 19:42:29 -0500 (EST) |
User-agent: | Alpine 2.00 (LMD 1167 2008-08-23) |
On Sat, 5 Feb 2011, Michael Witten wrote:
On Sat, Feb 5, 2011 at 18:02, Jon Seymour <jon.seymour@gmail.com> wrote:The version I tried on Linux 3.2.25 does have a .bash_history format that could support it, but it still behaved the same way.How do you mean? I'm running bash version "4.1.9(2)-release" on GNU/Linux, and the resulting history file doesn't seem like it's storing anything more than lines of text naively dumped from the multi-line example.
According to the man page, HISTTIMEFORMAT ... If this variable is set, time stamps are written to the history file so they may be preserved across shell sessions. However this is not done in any version of bash that I can find. -- Chris F.A. Johnson, <http://cfajohnson.com/> Author: Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress) Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
[Prev in Thread] | Current Thread | [Next in Thread] |