From 6ec9d03768dd9a123e4e7e7492db9aee73fce1c6 Mon Sep 17 00:00:00 2001 From: "Tim J. Robbins" Date: Fri, 28 Jun 2002 09:23:39 +0000 Subject: [PATCH] Discourage use of env(1)'s "-" flag by moving its description to the Compatibility section of the manual page. --- usr.bin/env/env.c | 2 +- usr.bin/printenv/printenv.1 | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/usr.bin/env/env.c b/usr.bin/env/env.c index 50a31b39392d..a9554577cb3f 100644 --- a/usr.bin/env/env.c +++ b/usr.bin/env/env.c @@ -92,6 +92,6 @@ static void usage() { (void)fprintf(stderr, - "usage: env [-] [-i] [name=value ...] [utility [argument ...]]\n"); + "usage: env [-i] [name=value ...] [utility [argument ...]]\n"); exit(1); } diff --git a/usr.bin/printenv/printenv.1 b/usr.bin/printenv/printenv.1 index a30bb5bb319e..120918afd0ad 100644 --- a/usr.bin/printenv/printenv.1 +++ b/usr.bin/printenv/printenv.1 @@ -44,7 +44,6 @@ .Nm .Op Ar name .Nm env -.Op Fl .Op Fl i .Op Ar name Ns = Ns Ar value ... .Op Ar utility Oo Ar argument ... Oc @@ -89,10 +88,6 @@ The environment inherited by .Nm env is ignored completely. -.It Fl -Identical to the -.Fl i -option, available for backward compatibility. .El .Pp If no utility is specified, @@ -129,6 +124,13 @@ was found, but could not be executed. An exit status of 127 indicates .Ar utility could not be found. +.Sh COMPATIBILITY +The +.Nm env +utility accepts the +.Fl +option as a synonym for +.Fl i . .Sh SEE ALSO .Xr csh 1 , .Xr sh 1 ,