Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: feature idea: customizable string in history file
- X-seq: zsh-users 12706
- From: Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>
- To: Richard Hartmann <richih.mailinglist@xxxxxxxxx>
- Subject: Re: feature idea: customizable string in history file
- Date: Mon, 10 Mar 2008 10:16:17 -0700
- Cc: ZSH User List <zsh-users@xxxxxxxxxx>
- In-reply-to: <2d460de70803100933t112e57egcce85195a2e6c60a@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20080307142825.GA23322@xxxxxxxxx> <20080307170808.GC11566@xxxxxxxxxxxxxxxxxxx> <20080308111057.GA23700@xxxxxxxxx> <2d460de70803080409t18e8a4b4vb31f34c17d5f2281@xxxxxxxxxxxxxx> <20080308122521.GA30479@xxxxxxxxx> <2d460de70803100933t112e57egcce85195a2e6c60a@xxxxxxxxxxxxxx>
On Mon, Mar 10, 2008 at 05:33:35PM +0100, Richard Hartmann wrote:
> timestamp;execution;user;computername;command
You have the wrong syntax there. It is this:
: 1234:0; command
The ':' command is a no-op, so everything through the ';' is ignored.
Adding more args doesn't confuse zsh or any other shell as long as the
number parsing of the first 2 numbers is not affected and no shell-
special chars are added. E.g, this is fine:
: 1234:0:user1; command
So, no numeric commands are ever executed by a non-zsh reading the
history file, just ":" commands.
..wayne..
Messages sorted by:
Reverse Date,
Date,
Thread,
Author