summaryrefslogtreecommitdiff
path: root/bin/ksh/ksh.1
diff options
context:
space:
mode:
authornatano <natano@cvs.openbsd.org>2016-03-06 11:56:21 +0000
committernatano <natano@cvs.openbsd.org>2016-03-06 11:56:21 +0000
commita486377ff6074928eb3df1975e7b43378e2e13fc (patch)
tree9183317a41839c683f043137dc5f000f48d3b8c7 /bin/ksh/ksh.1
parent447a76d5aa35a44077171229b4864e6a3c1705d1 (diff)
Make set +o conform with POSIX.
It should be possible to use set +o to save the current shell options, then modify them at will and later restore them to the saved value. Therefore the output must not only contain the options which are currently set, but also the ones that are _not_ set, so a restore disables them if they are enabled. from Martijn Dekker (martijn (at) inlv (dot) org) ok sthen@, tb@
Diffstat (limited to 'bin/ksh/ksh.1')
-rw-r--r--bin/ksh/ksh.17
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/ksh/ksh.1 b/bin/ksh/ksh.1
index f33ef5b7896..e33a4b5e7ad 100644
--- a/bin/ksh/ksh.1
+++ b/bin/ksh/ksh.1
@@ -1,8 +1,8 @@
-.\" $OpenBSD: ksh.1,v 1.175 2016/03/04 18:16:50 millert Exp $
+.\" $OpenBSD: ksh.1,v 1.176 2016/03/06 11:56:20 natano Exp $
.\"
.\" Public Domain
.\"
-.Dd $Mdocdate: March 4 2016 $
+.Dd $Mdocdate: March 6 2016 $
.Dt KSH 1
.Os
.Sh NAME
@@ -3734,7 +3734,8 @@ options (with single letter names) can be found in the parameter
.Ic set Fl o
with no option name will list all the options and whether each is on or off;
.Ic set +o
-will print the long names of all options that are currently on.
+will print the current shell options in the form of a command that
+can be reinput to the shell to achieve the same options settings.
.Pp
Remaining arguments, if any, are positional parameters and are assigned, in
order, to the positional parameters (i.e. $1, $2, etc.).