Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: feature idea: customizable string in history file
- X-seq: zsh-users 12703
- From: Andy Spiegl <zsh.Andy@xxxxxxxxx>
- To: ZSH User List <zsh-users@xxxxxxxxxx>
- Subject: Re: feature idea: customizable string in history file
- Date: Sat, 8 Mar 2008 13:25:21 +0100
- In-reply-to: <2d460de70803080409t18e8a4b4vb31f34c17d5f2281@xxxxxxxxxxxxxx>
- Kreccount: 1
- Mail-followup-to: ZSH User List <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20080307142825.GA23322@xxxxxxxxx> <20080307170808.GC11566@xxxxxxxxxxxxxxxxxxx> <20080308111057.GA23700@xxxxxxxxx> <2d460de70803080409t18e8a4b4vb31f34c17d5f2281@xxxxxxxxxxxxxx>
On 2008-03-08, 13:09, Richard Hartmann wrote:
> The main problem I see is: What happens when you change the
> formatting of your extras? Suddenly, old history files have wrong data.
This should not be a problem as long as it doesn't contain ';'.
As Wayne wrote:
> The parsing code won't care about the extra characters since it just
> skips to the ';' after parsing the first 2 items.
> you are unlikely to have programs called '100' or some such, so the
> history can be re-used by other shells.
I don't think so. Bash e.g. interprets the extra time stamp as command:
condor:~>cp .zsh.history .bash_history
condor:~>bash
spiegl@condor:~$ <CURSOR-UP>
spiegl@condor:~$ : 1204978934:0;cp .zsh.history .bash_history
Bash can save the timestamp too, but does it in an extra line with '#':
#1200613484
test
#1200613490
history
#1200613529
date
Bye,
Andy.
--
She had a boyfriend with a wooden leg, but broke it off.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author