summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2015-10-30 13:48:12 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2015-10-30 13:48:12 +0000
commit2a1fc532d9acff651b277550574542265ee8a733 (patch)
tree3669b02aa3494e454d19c9692e846864eadaa7ad /bin
parent499b6adf102c301f662ccaf618a10cc6c8f68a17 (diff)
Try to clarify the fc section a tad; fc apprently stands for "fix command".
Also the "fc -e -" syntax is obsoleted by "fc -s". OK tedu@
Diffstat (limited to 'bin')
-rw-r--r--bin/ksh/ksh.121
1 files changed, 13 insertions, 8 deletions
diff --git a/bin/ksh/ksh.1 b/bin/ksh/ksh.1
index 2e59e1070d0..386d813af81 100644
--- a/bin/ksh/ksh.1
+++ b/bin/ksh/ksh.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ksh.1,v 1.163 2015/10/30 03:13:52 guenther Exp $
+.\" $OpenBSD: ksh.1,v 1.164 2015/10/30 13:48:11 millert Exp $
.\"
.\" Public Domain
.\"
@@ -3109,6 +3109,7 @@ A command that exits with a non-zero status.
.Op Fl r
.Op Ar first Op Ar last
.Xc
+Fix command.
.Ar first
and
.Ar last
@@ -3136,13 +3137,16 @@ parameter (if this parameter is not set,
is used), and then executed by the shell.
.Pp
.It Xo
-.Ic fc
-.Cm -e - \*(Ba Fl s
+.Ic fc Fl s
.Op Fl g
.Op Ar old Ns = Ns Ar new
.Op Ar prefix
.Xc
-Re-execute the selected command (the previous command by default) after
+Re-execute the most recent command beginning with
+.Ar prefix ,
+or the previous command if no
+.Ar prefix
+is specified,
performing the optional substitution of
.Ar old
with
@@ -3153,11 +3157,12 @@ is specified, all occurrences of
.Ar old
are replaced with
.Ar new .
-The meaning of
-.Cm -e -
-and
+The editor is not invoked when the
.Fl s
-is identical: re-execute the selected command without invoking an editor.
+flag is used.
+The obsolescent equivalent
+.Dq Fl e No -
+is also accepted.
This command is usually accessed with the predefined
.Ic alias r='fc -s' .
.Pp