summaryrefslogtreecommitdiffstats
path: root/sys-utils/nsenter.1
diff options
context:
space:
mode:
authorKarel Zak2017-01-09 12:48:14 +0100
committerKarel Zak2017-01-09 12:50:09 +0100
commit0f0b5823a68c78e4ef62efd1f03cfcb6d549060d (patch)
tree97c58867236b8d98a4b266fcf89c7f2b2da88adb /sys-utils/nsenter.1
parentMerge branch 'betterMinixChecks' of https://github.com/n3world/util-linux (diff)
downloadkernel-qcow2-util-linux-0f0b5823a68c78e4ef62efd1f03cfcb6d549060d.tar.gz
kernel-qcow2-util-linux-0f0b5823a68c78e4ef62efd1f03cfcb6d549060d.tar.xz
kernel-qcow2-util-linux-0f0b5823a68c78e4ef62efd1f03cfcb6d549060d.zip
nsenter: fix usage() and improve man page
The "program" is optional and $SHELL is executed by default. Addresses: https://github.com/karelzak/util-linux/issues/389 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/nsenter.1')
-rw-r--r--sys-utils/nsenter.17
1 files changed, 3 insertions, 4 deletions
diff --git a/sys-utils/nsenter.1 b/sys-utils/nsenter.1
index 66e3cecfe..95f28ae43 100644
--- a/sys-utils/nsenter.1
+++ b/sys-utils/nsenter.1
@@ -8,7 +8,9 @@ nsenter \- run program with namespaces of other processes
.RI [ arguments ]]
.SH DESCRIPTION
Enters the namespaces of one or more other processes and then executes the specified
-program. Enterable namespaces are:
+\fIprogram\fP. If \fIprogram\fP is not given, then ``${SHELL}'' is run (default: /bin\:/sh).
+.PP
+Enterable namespaces are:
.TP
.B mount namespace
Mounting and unmounting filesystems will not affect the rest of the system,
@@ -91,9 +93,6 @@ flag in
.BR clone (2).
.TP
See \fBclone\fP(2) for the exact semantics of the flags.
-.TP
-If \fIprogram\fP is not given, then ``${SHELL}'' is run (default: /bin\:/sh).
-
.SH OPTIONS
Various of the options below that relate to namespaces take an optional
.I file