summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2002-06-06 04:12:50 +0000
committertjr <tjr@FreeBSD.org>2002-06-06 04:12:50 +0000
commit8b3a40cd3f732fc4b743fc9e0dfbb775998dadd2 (patch)
treeeea048dfbe6f0d1bf915feb9a6abe2db2debc029 /bin
parent70c6f806e018ebe56f21969bc9ef2b2a79b6fa21 (diff)
downloadFreeBSD-src-8b3a40cd3f732fc4b743fc9e0dfbb775998dadd2.zip
FreeBSD-src-8b3a40cd3f732fc4b743fc9e0dfbb775998dadd2.tar.gz
Document the -f and -v options of the unset builtin.
Diffstat (limited to 'bin')
-rw-r--r--bin/sh/sh.120
1 files changed, 15 insertions, 5 deletions
diff --git a/bin/sh/sh.1 b/bin/sh/sh.1
index 34e4abe..c1d774f 100644
--- a/bin/sh/sh.1
+++ b/bin/sh/sh.1
@@ -1860,12 +1860,22 @@ is specified, the shell removes that alias.
If
.Fl a
is specified, all aliases are removed.
-.It Ic unset Ar name ...
-The specified variables and functions are unset and unexported.
-If a given
+.It Xo
+.Ic unset
+.Op Fl fv
+.Ar name ...
+.Xc
+The specified variables or functions are unset and unexported.
+If the
+.Fl v
+option is specified or no options are given, the
+.Ar name
+arguments are treated as variable names.
+If the
+.Fl f
+option is specified, the
.Ar name
-corresponds to both a variable and a function,
-both the variable and the function are unset.
+arguments are treated as function names.
.It Ic wait Op Ar job
Wait for the specified
.Ar job
OpenPOWER on IntegriCloud