diff options
Diffstat (limited to 'Doc/Zsh/expn.yo')
-rw-r--r-- | Doc/Zsh/expn.yo | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo index a61738f84..8b447e2c7 100644 --- a/Doc/Zsh/expn.yo +++ b/Doc/Zsh/expn.yo @@ -83,10 +83,10 @@ subsect(Overview) vindex(histchars, use of) A history expansion begins with the first character of the tt(histchars) parameter, which is `tt(!)' by default, and may occur anywhere on the -command line; history expansions do not nest. The `tt(!)' can be escaped -with `tt(\)' or can be enclosed between a pair of single quotes (tt('')) -to suppress its special meaning. Double quotes will em(not) work for -this. Following this history character is an optional event designator +command line, including inside double quotes (but not inside single quotes +tt('...') or C-style quotes tt($'...') nor when escaped with a backslash). + +The first character is followed by an optional event designator (ifzman(see )noderef(Event Designators)) and then an optional word designator (noderef(Word Designators)); if neither of these designators is present, no history expansion occurs. @@ -96,6 +96,8 @@ but before any other expansions take place and before the command is executed. It is this expanded form that is recorded as the history event for later references. +History expansions do not nest. + By default, a history reference with no event designator refers to the same event as any preceding history reference on that command line; if it is the only history reference in a command, it refers to the previous @@ -1025,9 +1027,10 @@ ifnzman(noderef(Filename Expansion))\ ifzman(the section FILENAME EXPANSION below). ) item(tt(e))( -Perform em(parameter expansion), em(command substitution) and -em(arithmetic expansion) on the result. Such expansions can be -nested but too deep recursion may have unpredictable effects. +Perform single word shell expansions, namely em(parameter expansion), +em(command substitution) and em(arithmetic expansion), on the +result. Such expansions can be nested but too deep recursion may have +unpredictable effects. ) item(tt(f))( Split the result of the expansion at newlines. This is a shorthand |