summaryrefslogtreecommitdiffstats
path: root/usr.bin/env/env.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/env/env.c')
-rw-r--r--usr.bin/env/env.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/env/env.c b/usr.bin/env/env.c
index a5083fb..42ec003 100644
--- a/usr.bin/env/env.c
+++ b/usr.bin/env/env.c
@@ -60,9 +60,10 @@ main(argc, argv)
char *cleanenv[1];
int ch;
- while ((ch = getopt(argc, argv, "-")) != -1)
+ while ((ch = getopt(argc, argv, "-i")) != -1)
switch(ch) {
case '-':
+ case 'i':
environ = cleanenv;
cleanenv[0] = NULL;
break;
@@ -85,6 +86,6 @@ static void
usage()
{
(void)fprintf(stderr,
- "usage: env [-] [name=value ...] [command]\n");
+ "usage: env [-] [-i] [name=value ...] [command]\n");
exit(1);
}
OpenPOWER on IntegriCloud