aboutsummaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorMartijn Dekker <martijn@inlv.org>2021-02-16 18:34:41 +0000
committerPeter Stephenson <p.stephenson@samsung.com>2021-02-17 10:21:08 +0000
commit9c0533931c51b7d512d3e95850404f5aac2dbce1 (patch)
treea26b4c6da996989ce6c4e010b65aa41deedb8f98 /Doc
parent326d9c203b3980c0f841bc62b06e37134c6e51ea (diff)
downloadzsh-9c0533931c51b7d512d3e95850404f5aac2dbce1.tar.gz
zsh-9c0533931c51b7d512d3e95850404f5aac2dbce1.tar.xz
zsh-9c0533931c51b7d512d3e95850404f5aac2dbce1.zip
48073: Add fc -s as POSIX way of rerunning command without starting editor
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/builtins.yo3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo
index ebb29f632..a7afe42cf 100644
--- a/Doc/Zsh/builtins.yo
+++ b/Doc/Zsh/builtins.yo
@@ -736,7 +736,7 @@ findex(fc)
cindex(history, editing)
cindex(editing history)
redef(SPACES)(0)(tt(ifztexi(NOTRANS(@ @ @ @ @ @ ))ifnztexi( )))
-xitem(tt(fc) [ tt(-e) var(ename) ] [ tt(-LI) ] [ tt(-m) var(match) ] [ var(old)tt(=)var(new) ... ] [ var(first) [ var(last) ] ])
+xitem(tt(fc) [ tt(-e) var(ename) ] [ tt(-s) ] [ tt(-LI) ] [ tt(-m) var(match) ] [ var(old)tt(=)var(new) ... ] [ var(first) [ var(last) ] ])
xitem(tt(fc -l )[ tt(-LI) ] [ tt(-nrdfEiD) ] [ tt(-t) var(timefmt) ] [ tt(-m) var(match) ])
xitem(SPACES()[ var(old)tt(=)var(new) ... ] [ var(first) [ var(last) ] ])
xitem(tt(fc -p )[ tt(-a) ] [ var(filename) [ var(histsize) [ var(savehistsize) ] ] ])
@@ -783,6 +783,7 @@ the parameter tt(EDITOR) is used; if that is not set a builtin default,
usually `tt(vi)' is used. If var(ename) is `tt(-)', no editor is invoked.
When editing is complete, the edited command is executed.
+The flag `tt(-s)' is equivalent to `tt(-e -)'.
The flag tt(-r) reverses the order of the events and the
flag tt(-n) suppresses event numbers when listing.