Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: feature idea: customizable string in history file



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