summaryrefslogtreecommitdiffstats
path: root/sys-utils/unshare.1
diff options
context:
space:
mode:
authorKarel Zak2017-01-09 12:48:14 +0100
committerKarel Zak2017-01-09 12:50:47 +0100
commitb5672517fdf37df8f2e3fbf13065723d0486ca56 (patch)
treecf437f759eb35a03602abe490d284deab00fc517 /sys-utils/unshare.1
parentnsenter: fix usage() and improve man page (diff)
downloadkernel-qcow2-util-linux-b5672517fdf37df8f2e3fbf13065723d0486ca56.tar.gz
kernel-qcow2-util-linux-b5672517fdf37df8f2e3fbf13065723d0486ca56.tar.xz
kernel-qcow2-util-linux-b5672517fdf37df8f2e3fbf13065723d0486ca56.zip
unshare: fix SYNOPSIS and usage()
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/unshare.1')
-rw-r--r--sys-utils/unshare.17
1 files changed, 4 insertions, 3 deletions
diff --git a/sys-utils/unshare.1 b/sys-utils/unshare.1
index ed3167815..7c7d144d1 100644
--- a/sys-utils/unshare.1
+++ b/sys-utils/unshare.1
@@ -4,11 +4,12 @@ unshare \- run program with some namespaces unshared from parent
.SH SYNOPSIS
.B unshare
[options]
-.I program
-.RI [ arguments ]
+.RI [ program
+.RI [ arguments ]]
.SH DESCRIPTION
Unshares the indicated namespaces from the parent process and then executes
-the specified \fIprogram\fR.
+the specified \fIprogram\fR. If \fIprogram\fR is not given, then ``${SHELL}'' is
+run (default: /bin/sh).
.PP
The namespaces can optionally be made persistent by bind mounting
/proc/\fIpid\fR/ns/\fItype\fR files to a filesystem path and entered with