summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/env/env.16
-rw-r--r--usr.bin/env/env.c7
2 files changed, 9 insertions, 4 deletions
diff --git a/usr.bin/env/env.1 b/usr.bin/env/env.1
index 0c2a0d50be7..207414302b8 100644
--- a/usr.bin/env/env.1
+++ b/usr.bin/env/env.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: env.1,v 1.12 2006/05/28 04:21:13 ray Exp $
+.\" $OpenBSD: env.1,v 1.13 2006/05/28 05:29:54 ray Exp $
.\" Copyright (c) 1980, 1990 The Regents of the University of California.
.\" All rights reserved.
.\"
@@ -107,6 +107,10 @@ could not be found.
.Xr execvp 3 ,
.Xr environ 7
.Sh STANDARDS
+The historic
+.Fl
+option has been deprecated but is still supported in this implementation.
+.Pp
The
.Nm
utility conforms to
diff --git a/usr.bin/env/env.c b/usr.bin/env/env.c
index db5d70f7f6c..8240bf28928 100644
--- a/usr.bin/env/env.c
+++ b/usr.bin/env/env.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: env.c,v 1.11 2006/05/28 04:21:13 ray Exp $ */
+/* $OpenBSD: env.c,v 1.12 2006/05/28 05:29:54 ray Exp $ */
/*
* Copyright (c) 1988, 1993, 1994
@@ -37,7 +37,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "@(#)env.c 8.3 (Berkeley) 4/2/94";*/
-static char rcsid[] = "$OpenBSD: env.c,v 1.11 2006/05/28 04:21:13 ray Exp $";
+static char rcsid[] = "$OpenBSD: env.c,v 1.12 2006/05/28 05:29:54 ray Exp $";
#endif /* not lint */
#include <err.h>
@@ -60,8 +60,9 @@ main(int argc, char *argv[])
setlocale(LC_ALL, "");
- while ((ch = getopt(argc, argv, "i")) != -1)
+ while ((ch = getopt(argc, argv, "i-")) != -1)
switch(ch) {
+ case '-': /* obsolete */
case 'i':
if ((environ = calloc(1, sizeof(char *))) == NULL)
err(126, "calloc");