Discourage use of env(1)'s "-" flag by moving its description to the
Compatibility section of the manual page.
This commit is contained in:
parent
579abfd895
commit
6ec9d03768
2
usr.bin/env/env.c
vendored
2
usr.bin/env/env.c
vendored
@ -92,6 +92,6 @@ static void
|
|||||||
usage()
|
usage()
|
||||||
{
|
{
|
||||||
(void)fprintf(stderr,
|
(void)fprintf(stderr,
|
||||||
"usage: env [-] [-i] [name=value ...] [utility [argument ...]]\n");
|
"usage: env [-i] [name=value ...] [utility [argument ...]]\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,6 @@
|
|||||||
.Nm
|
.Nm
|
||||||
.Op Ar name
|
.Op Ar name
|
||||||
.Nm env
|
.Nm env
|
||||||
.Op Fl
|
|
||||||
.Op Fl i
|
.Op Fl i
|
||||||
.Op Ar name Ns = Ns Ar value ...
|
.Op Ar name Ns = Ns Ar value ...
|
||||||
.Op Ar utility Oo Ar argument ... Oc
|
.Op Ar utility Oo Ar argument ... Oc
|
||||||
@ -89,10 +88,6 @@ The environment inherited
|
|||||||
by
|
by
|
||||||
.Nm env
|
.Nm env
|
||||||
is ignored completely.
|
is ignored completely.
|
||||||
.It Fl
|
|
||||||
Identical to the
|
|
||||||
.Fl i
|
|
||||||
option, available for backward compatibility.
|
|
||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
If no utility is specified,
|
If no utility is specified,
|
||||||
@ -129,6 +124,13 @@ was found, but could not be executed.
|
|||||||
An exit status of 127 indicates
|
An exit status of 127 indicates
|
||||||
.Ar utility
|
.Ar utility
|
||||||
could not be found.
|
could not be found.
|
||||||
|
.Sh COMPATIBILITY
|
||||||
|
The
|
||||||
|
.Nm env
|
||||||
|
utility accepts the
|
||||||
|
.Fl
|
||||||
|
option as a synonym for
|
||||||
|
.Fl i .
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
.Xr csh 1 ,
|
.Xr csh 1 ,
|
||||||
.Xr sh 1 ,
|
.Xr sh 1 ,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user