From b5672517fdf37df8f2e3fbf13065723d0486ca56 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 9 Jan 2017 12:48:14 +0100 Subject: 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 --- sys-utils/unshare.1 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys-utils/unshare.1') 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 -- cgit v1.2.3-55-g7522