Date: Fri, 12 Nov 2004 18:20:20 GMT From: Robin Breathe <robin@isometry.net> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/65649: Add `-u name' option to env(1) Message-ID: <200411121820.iACIKKCt003824@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/65649; it has been noted by GNATS. From: Robin Breathe <robin@isometry.net> To: freebsd-gnats-submit@FreeBSD.org Cc: Jos Backus <jos@catnook.com>, Garrett Wollman <wollman@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411121820.iACIKKCt003824>