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

Re: !!:$



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