Date: Tue, 24 Aug 1999 20: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: <199908250310.UAA60743@freefall.freebsd.org>
index | next in thread | raw e-mail
The following reply was made to PR bin/13363; it has been noted by GNATS.
From: James Howard <howardjp@wam.umd.edu>
To: Bill Fumerola <billf@jade.chc-chimes.com>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/13363: Patch to env(1) for Unix 98 compatability
Date: Tue, 24 Aug 1999 23:09:23 -0400 (EDT)
On Tue, 24 Aug 1999, Bill Fumerola wrote:
> style(9) says this can be written as
>
> /* For Unix 98 compatability. */
> /* FALLTHROUGH */
Okay, here is a modified diff. I also mispelled "compatibility" so I
fixed that too.
*** /usr/src/usr.bin/env/env.c Sun Dec 6 22:58:22 1998
--- /usr/local/src/env/env.c Tue Aug 24 20:33:03 1999
***************
*** 60,67 ****
char *cleanenv[1];
int ch;
! while ((ch = getopt(argc, argv, "-")) != -1)
switch(ch) {
case '-':
environ = cleanenv;
cleanenv[0] = NULL;
--- 60,72 ----
char *cleanenv[1];
int ch;
! while ((ch = getopt(argc, argv, "i-")) != -1)
switch(ch) {
+ case 'i':
+ /* For Unix 98 compatibility. */
+ /* FALLTHROUGH */
case '-':
environ = cleanenv;
cleanenv[0] = NULL;
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908250310.UAA60743>
