From 6076c474f2427ec9a75cecab1fc95f7cd9f066f6 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 24 Jul 2014 10:49:50 +0100 Subject: unposted: replace-argument can take negative prefix to count from end --- Doc/Zsh/contrib.yo | 1 + 1 file changed, 1 insertion(+) (limited to 'Doc') diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo index 4ee404c1b..1c1a66a3b 100644 --- a/Doc/Zsh/contrib.yo +++ b/Doc/Zsh/contrib.yo @@ -2339,6 +2339,7 @@ is not executed). Arguments are as delimited by standard shell syntax, If a numeric argument is given, that specifies the argument to be replaced. 0 means the command name, as in history expansion. +A negative numeric argument counts backward from the last word. If no numeric argument is given, the current argument is replaced; this is the last argument if the previous history line is being used. -- cgit 1.4.1