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>
This commit is contained in:
parent
0f0b5823a6
commit
b5672517fd
|
@ -4,11 +4,12 @@ unshare \- run program with some namespaces unshared from parent
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B unshare
|
.B unshare
|
||||||
[options]
|
[options]
|
||||||
.I program
|
.RI [ program
|
||||||
.RI [ arguments ]
|
.RI [ arguments ]]
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
Unshares the indicated namespaces from the parent process and then executes
|
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
|
.PP
|
||||||
The namespaces can optionally be made persistent by bind mounting
|
The namespaces can optionally be made persistent by bind mounting
|
||||||
/proc/\fIpid\fR/ns/\fItype\fR files to a filesystem path and entered with
|
/proc/\fIpid\fR/ns/\fItype\fR files to a filesystem path and entered with
|
||||||
|
|
|
@ -243,7 +243,7 @@ static void usage(int status)
|
||||||
FILE *out = status == EXIT_SUCCESS ? stdout : stderr;
|
FILE *out = status == EXIT_SUCCESS ? stdout : stderr;
|
||||||
|
|
||||||
fputs(USAGE_HEADER, out);
|
fputs(USAGE_HEADER, out);
|
||||||
fprintf(out, _(" %s [options] <program> [<argument>...]\n"),
|
fprintf(out, _(" %s [options] [<program> [<argument>...]]\n"),
|
||||||
program_invocation_short_name);
|
program_invocation_short_name);
|
||||||
|
|
||||||
fputs(USAGE_SEPARATOR, out);
|
fputs(USAGE_SEPARATOR, out);
|
||||||
|
|
Loading…
Reference in New Issue