Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Aug 1999 15:10:02 -0700 (PDT)
From:      James Howard <howardjp@wam.umd.edu>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/13363: Patch to env(1) for Unix 98 compatability 
Message-ID:  <199908252210.PAA34405@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/13363; it has been noted by GNATS.

From: James Howard <howardjp@wam.umd.edu>
To: Sheldon Hearn <sheldonh@uunet.co.za>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/13363: Patch to env(1) for Unix 98 compatability 
Date: Wed, 25 Aug 1999 17:57:56 -0400 (EDT)

 Due to the sheer number of complaints about my style here is a new patch
 for env which should make everyone happy :)  Following it is a diff to
 printenv.1.
 
 --- /usr/src/usr.bin/env/env.c	Sun Dec  6 17:58:22 1998
 +++ env.c	Wed Aug 25 17:45:39 1999
 @@ -60,8 +60,9 @@
  	char *cleanenv[1];
  	int ch;
  
 -	while ((ch = getopt(argc, argv, "-")) != -1)
 +	while ((ch = getopt(argc, argv, "i-")) != -1)		
  		switch(ch) {
 +		case 'i':
  		case '-':
  			environ = cleanenv;
  			cleanenv[0] = NULL;
 @@ -85,6 +86,6 @@
  usage()
  {
  	(void)fprintf(stderr,
 -	    "usage: env [-] [name=value ...] [command]\n");
 +	    "usage: env [-] [-i] [name=value ...] [command]\n");
  	exit(1);
  }
 
 ------------CUT HERE-----------------
 
 --- /usr/src/usr.bin/printenv/printenv.1	Mon Jul 12 16:23:52 1999
 +++ printenv.1	Wed Aug 25 17:45:42 1999
 @@ -45,6 +44,7 @@
  .Op Ar name
  .Nm env
  .Op Fl
 +.Op Fl i
  .Op Ar name=value ...
  .Op Ar command
  .Sh DESCRIPTION
 @@ -72,12 +72,20 @@
  .Ar name  ,
  with a value of
  .Ar value  .
 -The option
 -.Sq Fl
 -causes
 +The options to
 +.Nm env
 +are as follows:
 +.Pp
 +.Bl -tag -width indent
 +.It Fl
 +Force
  .Nm env
  to completely ignore the environment
  it inherits.
 +.It Fl i
 +Equivalent to
 +.Fl .
 +.El
  .Pp
  If no command is specified,
  .Nm env
 
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908252210.PAA34405>