char *cleanenv[1];
int ch;
while ((ch = getopt(argc, argv, "-i")) != -1)
while ((ch = getopt(argc, argv, "-iu:")) != -1)
switch(ch) {
case '-':
case 'i':
environ = cleanenv;
cleanenv[0] = NULL;
break;
case 'u':
unsetenv(optarg);
case '?':
default:
usage();
usage(void)
{
(void)fprintf(stderr,
"usage: env [-i] [name=value ...] [utility [argument ...]]\n");
"usage: env [-i] [[-u name] ...] [name=value ...] [utility [argument ...]]\n");
exit(1);
}
.Sh SYNOPSIS
.Nm
.Op Fl i
.Op Fl u Ar name
.Op Ar name Ns = Ns Ar value ...
.Op Ar utility Op Ar argument ...
.Sh DESCRIPTION
by
is ignored completely.
.It Fl u Ar name
Execute the
.Ar utility
with
.Ar name
removed from the environment,
if it was present in the environment inherited by
.Nm .
.El
.Pp
If no utility is specified,