diff options
Diffstat (limited to 'doc/history.html')
-rw-r--r-- | doc/history.html | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/doc/history.html b/doc/history.html index 6a15248..6869048 100644 --- a/doc/history.html +++ b/doc/history.html @@ -1,6 +1,6 @@ <HTML> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<!-- Created on April, 17 2019 by texi2html 1.64 --> +<!-- Created on November, 20 2019 by texi2html 1.64 --> <!-- Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author) Karl Berry <karl@freefriends.org> @@ -192,12 +192,14 @@ containing <VAR>string</VAR>. The trailing <SAMP>`?'</SAMP> may be omitted if the <VAR>string</VAR> is followed immediately by a newline. +If <VAR>string</VAR> is missing, the string from the most recent search is used; +it is an error if there is no previous search string. <P> <DT><CODE>^<VAR>string1</VAR>^<VAR>string2</VAR>^</CODE> <DD>Quick Substitution. Repeat the last command, replacing <VAR>string1</VAR> with <VAR>string2</VAR>. Equivalent to -<CODE>!!:s/<VAR>string1</VAR>/<VAR>string2</VAR>/</CODE>. +<CODE>!!:s^<VAR>string1</VAR>^<VAR>string2</VAR>^</CODE>. <P> <DT><CODE>!#</CODE> @@ -274,7 +276,8 @@ Here are the word designators: <P> <DT><CODE>%</CODE> -<DD>The word matched by the most recent <SAMP>`?<VAR>string</VAR>?'</SAMP> search. +<DD>The first word matched by the most recent <SAMP>`?<VAR>string</VAR>?'</SAMP> search, +if the search string begins with a character that is part of a word. <P> <DT><CODE><VAR>x</VAR>-<VAR>y</VAR></CODE> @@ -293,6 +296,7 @@ the empty string is returned in that case. <DT><CODE><VAR>x</VAR>-</CODE> <DD>Abbreviates <SAMP>`<VAR>x</VAR>-$'</SAMP> like <SAMP>`<VAR>x</VAR>*'</SAMP>, but omits the last word. +If <SAMP>`x'</SAMP> is missing, it defaults to 0. <P> </DL> @@ -322,6 +326,7 @@ previous command is used as the event. After the optional word designator, you can add a sequence of one or more of the following modifiers, each preceded by a <SAMP>`:'</SAMP>. +These modify, or edit, the word or words selected from the history event. </P><P> <DL COMPACT> @@ -349,11 +354,19 @@ the basename. <DT><CODE>s/<VAR>old</VAR>/<VAR>new</VAR>/</CODE> <DD>Substitute <VAR>new</VAR> for the first occurrence of <VAR>old</VAR> in the -event line. Any delimiter may be used in place of <SAMP>`/'</SAMP>. +event line. +Any character may be used as the delimiter in place of <SAMP>`/'</SAMP>. The delimiter may be quoted in <VAR>old</VAR> and <VAR>new</VAR> with a single backslash. If <SAMP>`&'</SAMP> appears in <VAR>new</VAR>, it is replaced by <VAR>old</VAR>. A single backslash will quote -the <SAMP>`&'</SAMP>. The final delimiter is optional if it is the last +the <SAMP>`&'</SAMP>. +If <VAR>old</VAR> is null, it is set to the last <VAR>old</VAR> +substituted, or, if no previous history substitutions took place, +the last <VAR>string</VAR> +in a !?<VAR>string</VAR><CODE>[?]</CODE> +search. +If <VAR>new</VAR> is is null, each matching <VAR>old</VAR> is deleted. +The final delimiter is optional if it is the last character on the input line. <P> @@ -369,7 +382,8 @@ or with <SAMP>`&'</SAMP>. <P> <DT><CODE>G</CODE> -<DD>Apply the following <SAMP>`s'</SAMP> modifier once to each word in the event. +<DD>Apply the following <SAMP>`s'</SAMP> or <SAMP>`&'</SAMP> modifier once to each word +in the event. <P> </DL> @@ -2166,7 +2180,7 @@ to permit their use in free software. <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="history.html#SEC_About"> ? </A>]</TD> </TR></TABLE> <H1>About this document</H1> -This document was generated by <I>chet</I> on <I>April, 17 2019</I> +This document was generated by <I>Chet Ramey</I> on <I>November, 20 2019</I> using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html "><I>texi2html</I></A> <P></P> @@ -2328,7 +2342,7 @@ the following structure: <BR> <FONT SIZE="-1"> This document was generated -by <I>chet</I> on <I>April, 17 2019</I> +by <I>Chet Ramey</I> on <I>November, 20 2019</I> using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html "><I>texi2html</I></A> |