Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: !!:$
- X-seq: zsh-users 8220
- From: Stephane Chazelas <Stephane_Chazelas@xxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: !!:$
- Date: Tue, 16 Nov 2004 14:31:44 +0000
- In-reply-to: <200411161422.iAGEMTuv032704@xxxxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20041116134539.GB14064@xxxxxxxxxxxxxxxxxxx> <200411161422.iAGEMTuv032704@xxxxxxxxxxxxxx>
On Tue, Nov 16, 2004 at 02:22:28PM +0000, Peter Stephenson wrote:
[...]
> me as a curious omission. How about adding it using the same name as
> bash? Then you can always get the full previous line as
> $history[$((HISTCMD-1))]. Hence you can do lots of tricks. The
> equivalent of the above would be:
>
[...]
> +vindex(HISTCMD)
> +item(tt(HISTCMD))(
> +The current history line number in an interactive shell, in other
> +words the line number for the command that caused tt($HISTCMD)
> +to be read.
> +)
[...]
Wouldn't it be the same as ${(%):-%!}?
--
Stéphane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author