From owner-freebsd-bugs@FreeBSD.ORG Fri Nov 12 18:20:21 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 65BA716A4D0 for ; Fri, 12 Nov 2004 18:20:21 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 571E043D31 for ; Fri, 12 Nov 2004 18:20:21 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id iACIKLe7003825 for ; Fri, 12 Nov 2004 18:20:21 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id iACIKKCt003824; Fri, 12 Nov 2004 18:20:20 GMT (envelope-from gnats) Date: Fri, 12 Nov 2004 18:20:20 GMT Message-Id: <200411121820.iACIKKCt003824@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Robin Breathe Subject: Re: bin/65649: Add `-u name' option to env(1) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Robin Breathe List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Nov 2004 18:20:21 -0000 The following reply was made to PR bin/65649; it has been noted by GNATS. From: Robin Breathe To: freebsd-gnats-submit@FreeBSD.org Cc: Jos Backus , Garrett Wollman 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