about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorPeter Stephenson <p.stephenson@samsung.com>2022-03-01 10:47:49 +0000
committerPeter Stephenson <p.stephenson@samsung.com>2022-03-01 10:47:49 +0000
commit24474bd34a1c19d86ae2adee247f286e2e702815 (patch)
tree3cff3c148ae5633da759f87e122b588d16203419 /Doc
parentef60187efce77c0572daf419ca5ba57a28df3cad (diff)
downloadzsh-24474bd34a1c19d86ae2adee247f286e2e702815.tar.gz
zsh-24474bd34a1c19d86ae2adee247f286e2e702815.tar.xz
zsh-24474bd34a1c19d86ae2adee247f286e2e702815.zip
users/27536: Improved history list documentation
Clarify interaction of matching and numbers.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/builtins.yo7
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo
index c7de50fd6..5649e00d4 100644
--- a/Doc/Zsh/builtins.yo
+++ b/Doc/Zsh/builtins.yo
@@ -756,15 +756,16 @@ specifies the most recent event beginning with the given string.  All
 substitutions var(old)tt(=)var(new), if any, are then performed on the
 text of the events.
 
-In addition to the number range,
+The range of events selected by numbers can be narrowed further by the
+following flags.
 startsitem()
 sitem(tt(-I))(restricts to only internal events (not from tt($HISTFILE)))
 sitem(tt(-L))(restricts to only local events (not from other shells, see
 tt(SHARE_HISTORY) in ifzman(zmanref(zshoptions))\
 ifnzman(noderef(Description of Options)) -- note that tt($HISTFILE) is
 considered local when read at startup))
-sitem(tt(-m))(takes the first argument as a pattern (should be quoted) and
-only the history events matching this pattern are considered)
+sitem(tt(-m))(takes the first argument as a pattern (which should be
+quoted) and only the history events matching this pattern are considered)
 endsitem()
 
 If var(first) is not specified, it will be set to -1 (the most recent