bin/65649: Add `-u name' option to env(1)
Robin Breathe
robin at isometry.net
Fri Nov 12 10:20:21 PST 2004
The following reply was made to PR bin/65649; it has been noted by GNATS.
From: Robin Breathe <robin at isometry.net>
To: freebsd-gnats-submit at FreeBSD.org
Cc: Jos Backus <jos at catnook.com>,
Garrett Wollman <wollman at khavrinen.lcs.mit.edu>
Subject: Re: bin/65649: Add `-u name' option to env(1)
Date: Fri, 12 Nov 2004 18:16:59 +0000
The original justification link is no longer working, however I believe
the patch is justified. I found this PR in advance of implementing the
functionality myself.
Setting the other valid arguments aside, it allows a shell-independent
method for adjusting a utility's environment.
Consider the following:
sh:
# ( unset FOO; set BAR=BIM; COMMAND )
# ( unset FOO; env BAR=BIM COMMAND )
csh:
# ( unsetenv FOO; setenv BAR BIM; COMMAND )
# ( unsetenv FOO; env BAR=BIM COMMAND )
patch:
# env -u FOO BAR=BIM COMMAND
Regards,
Robin Breathe
More information about the freebsd-bugs
mailing list