Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: feature idea: customizable string in history file
- X-seq: zsh-users 12705
- From: "Richard Hartmann" <richih.mailinglist@xxxxxxxxx>
- To: "ZSH User List" <zsh-users@xxxxxxxxxx>
- Subject: Re: feature idea: customizable string in history file
- Date: Mon, 10 Mar 2008 17:33:35 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=dEufspvekkFs57z5VzDjz77RzRpOJDIjuNXOLpiBGyw=; b=uoao+wVXzDd1rmxqyvZIes6ZTW8c3rMK1TOFFgd1ay2O+o+hJszNXihCKnn2NIMAMnNZkDKAvyG2tighiLu2P+KCTYLM52UlVAx5czF6eyd3oGe/ELmA1xHI71lCdIKyBxoaThbCKT7Tu9a41p9CrfW8oqwjUMvuA4X4sxsIlgI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=vRChsHmDRV6qI+owYWJvr91dbPhjtBy10UeIbyLcPRM3RsNjdSP7tc5ciJDZtzsGB1w3rFd85gXwypgZ9QKigFsIrCyBrEQhQZxALWVNc14de5i42fPk0o+PmWx0nERTDf1MWE+hHiBhN6QG36apHKXy2QVUXYugRHmhpk5MkVs=
- In-reply-to: <20080308122521.GA30479@xxxxxxxxx>
- 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>
On Sat, Mar 8, 2008 at 1:25 PM, Andy Spiegl <zsh.Andy@xxxxxxxxx> wrote:
> This should not be a problem as long as it doesn't contain ';'.
If
timestamp;execution;user;computername;command
changes to
timestamp;execution;computername;user;command
it would be. Same for
timestamp;execution;user$whatevercomputername;command
etc, etc. This would, of course, be the user's fault, but still.
> > 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:
Yes, that is the reason why ZSH does it that way. So other shells will only
execute numeric 'commands' which should, hopefully, be safe. That's what
I meant about it being a problem to store other data.
Come to think of it, it _could_ be done like
timestamp;execution;zsh_hist_save(user,computername);command
or even
timestamp;execution;echo 'user,computername';command
Richard
Messages sorted by:
Reverse Date,
Date,
Thread,
Author