summaryrefslogtreecommitdiffstats
path: root/bin/sh/sh.1
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2015-08-29 19:41:47 +0000
committerjilles <jilles@FreeBSD.org>2015-08-29 19:41:47 +0000
commit699c9af55ff3a18628f73db3446e39b34584b5c3 (patch)
tree45b72c61b2eb6f3af29b6ecc93085301321208f2 /bin/sh/sh.1
parentef54b2af3d94323df123e6375fe24accb5b54e3c (diff)
downloadFreeBSD-src-699c9af55ff3a18628f73db3446e39b34584b5c3.zip
FreeBSD-src-699c9af55ff3a18628f73db3446e39b34584b5c3.tar.gz
sh: Add set -o nolog.
POSIX requires this to prevent entering function definitions in history but this implementation does nothing except retain the option's value. In ksh88, function definitions were usually entered in the history file, even when they came from ~/.profile and the $ENV file, to allow displaying their definitions. This is also the first option that does not have a letter.
Diffstat (limited to 'bin/sh/sh.1')
-rw-r--r--bin/sh/sh.111
1 files changed, 9 insertions, 2 deletions
diff --git a/bin/sh/sh.1 b/bin/sh/sh.1
index e193d5d..14ae898 100644
--- a/bin/sh/sh.1
+++ b/bin/sh/sh.1
@@ -32,7 +32,7 @@
.\" from: @(#)sh.1 8.6 (Berkeley) 5/4/95
.\" $FreeBSD$
.\"
-.Dd July 11, 2015
+.Dd August 29, 2015
.Dt SH 1
.Os
.Sh NAME
@@ -343,6 +343,11 @@ Write each command
variable subjected to parameter expansion and arithmetic expansion)
to standard error before it is executed.
Useful for debugging.
+.It nolog
+Another do-nothing option for
+.Tn POSIX
+compliance.
+It only has a long name.
.El
.Pp
The
@@ -1173,7 +1178,9 @@ The only special parameter that can be made local is
.Ql - .
Making
.Ql -
-local causes any shell options that are
+local causes any shell options
+(including those that only have long names)
+that are
changed via the
.Ic set
command inside the function to be
OpenPOWER on IntegriCloud