FreeBSD Bugzilla – Attachment 42067 Details for
Bug 65649
Add `-u name' option to env(1)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.08 KB, created by
Jos Backus
on 2004-04-17 06:00:41 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Jos Backus
Created:
2004-04-17 06:00:41 UTC
Size:
1.08 KB
patch
obsolete
>--- env.c.orig Fri Apr 16 21:16:44 2004 >+++ env.c Fri Apr 16 21:21:25 2004 >@@ -64,13 +64,16 @@ > char *cleanenv[1]; > int ch; > >- while ((ch = getopt(argc, argv, "-i")) != -1) >+ while ((ch = getopt(argc, argv, "-iu:")) != -1) > switch(ch) { > case '-': > case 'i': > environ = cleanenv; > cleanenv[0] = NULL; > break; >+ case 'u': >+ unsetenv(optarg); >+ break; > case '?': > default: > usage(); >@@ -90,6 +93,6 @@ > usage(void) > { > (void)fprintf(stderr, >- "usage: env [-i] [name=value ...] [utility [argument ...]]\n"); >+ "usage: env [-i] [[-u name] ...] [name=value ...] [utility [argument ...]]\n"); > exit(1); > } >--- env.1.orig Fri Apr 16 21:16:39 2004 >+++ env.1 Fri Apr 16 21:41:17 2004 >@@ -44,6 +44,7 @@ > .Sh SYNOPSIS > .Nm > .Op Fl i >+.Op Fl u Ar name > .Op Ar name Ns = Ns Ar value ... > .Op Ar utility Op Ar argument ... > .Sh DESCRIPTION >@@ -71,6 +72,14 @@ > by > .Nm > is ignored completely. >+.It Fl u Ar name >+Execute the >+.Ar utility >+with >+.Ar name >+removed from the environment, >+if it was present in the environment inherited by >+.Nm . > .El > .Pp > If no utility is specified,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 65649
: 42067