1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-04 22:51:42 +02:00

users/27536: Improved history list documentation

Clarify interaction of matching and numbers.
This commit is contained in:
Peter Stephenson 2022-03-01 10:47:49 +00:00
parent ef60187efc
commit 24474bd34a
2 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2022-03-01 Peter Stephenson <p.stephenson@samsung.com>
* users/27536: Doc/Zsh/builtins.yo: Clarify interaction of
history matching and numeric indices.
2022-02-23 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> 2022-02-23 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
* 49766: Completion/Unix/Command/_less: add quotes to -" and -# * 49766: Completion/Unix/Command/_less: add quotes to -" and -#

View file

@ -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 substitutions var(old)tt(=)var(new), if any, are then performed on the
text of the events. 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() startsitem()
sitem(tt(-I))(restricts to only internal events (not from tt($HISTFILE))) 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 sitem(tt(-L))(restricts to only local events (not from other shells, see
tt(SHARE_HISTORY) in ifzman(zmanref(zshoptions))\ tt(SHARE_HISTORY) in ifzman(zmanref(zshoptions))\
ifnzman(noderef(Description of Options)) -- note that tt($HISTFILE) is ifnzman(noderef(Description of Options)) -- note that tt($HISTFILE) is
considered local when read at startup)) considered local when read at startup))
sitem(tt(-m))(takes the first argument as a pattern (should be quoted) and sitem(tt(-m))(takes the first argument as a pattern (which should be
only the history events matching this pattern are considered) quoted) and only the history events matching this pattern are considered)
endsitem() endsitem()
If var(first) is not specified, it will be set to -1 (the most recent If var(first) is not specified, it will be set to -1 (the most recent