summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2015-10-30 03:13:52 +0000
committerguenther <guenther@openbsd.org>2015-10-30 03:13:52 +0000
commit0fe84d04a1c32cc655e19a9b16557b10e3470617 (patch)
tree042d2dde3ed55ba68649b319add1275691de6066
parentFor getgrent.3: (diff)
downloadwireguard-openbsd-0fe84d04a1c32cc655e19a9b16557b10e3470617.tar.xz
wireguard-openbsd-0fe84d04a1c32cc655e19a9b16557b10e3470617.zip
'fc -e -' is deprecated in favor of 'fc -s', so update the built-in alias
ok millert@
-rw-r--r--bin/ksh/ksh.18
-rw-r--r--bin/ksh/main.c4
2 files changed, 6 insertions, 6 deletions
diff --git a/bin/ksh/ksh.1 b/bin/ksh/ksh.1
index d333b38d7fd..2e59e1070d0 100644
--- a/bin/ksh/ksh.1
+++ b/bin/ksh/ksh.1
@@ -1,8 +1,8 @@
-.\" $OpenBSD: ksh.1,v 1.162 2015/10/17 21:06:23 jmc Exp $
+.\" $OpenBSD: ksh.1,v 1.163 2015/10/30 03:13:52 guenther Exp $
.\"
.\" Public Domain
.\"
-.Dd $Mdocdate: October 17 2015 $
+.Dd $Mdocdate: October 30 2015 $
.Dt KSH 1
.Os
.Sh NAME
@@ -847,7 +847,7 @@ integer='typeset -i'
local='typeset'
login='exec login'
nohup='nohup '
-r='fc -e -'
+r='fc -s'
stop='kill -STOP'
type='whence -v'
.Ed
@@ -3159,7 +3159,7 @@ and
.Fl s
is identical: re-execute the selected command without invoking an editor.
This command is usually accessed with the predefined
-.Ic alias r='fc -e -' .
+.Ic alias r='fc -s' .
.Pp
.It Ic fg Op Ar job ...
Resume the specified job(s) in the foreground.
diff --git a/bin/ksh/main.c b/bin/ksh/main.c
index 4e8e6391f81..410a0ee4dc6 100644
--- a/bin/ksh/main.c
+++ b/bin/ksh/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.71 2015/10/22 15:37:04 mmcc Exp $ */
+/* $OpenBSD: main.c,v 1.72 2015/10/30 03:13:52 guenther Exp $ */
/*
* startup, main loop, environments and error handling
@@ -97,7 +97,7 @@ static const char *initcoms [] = {
"integer=typeset -i",
"nohup=nohup ",
"local=typeset",
- "r=fc -e -",
+ "r=fc -s",
/* Aliases that are builtin commands in at&t */
"login=exec login",
NULL,