Skip to content
Permalink
Browse files

"array unset env" breaks the assocation with the internal variable, such

that the (reset) env variable no longer acts to set the env in the subprocess.
So use "array unset env *" instead, which seems to work.

git-svn-id: https://svn.macports.org/repository/macports/trunk/base@14570 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
jdberry committed Oct 11, 2005
1 parent 80ed918 commit 9114567d7d200cb5a6b1eadbd715758277e8b613
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/port/port.tcl
@@ -2,7 +2,7 @@
#\
exec @TCLSH@ "$0" "$@"
# port.tcl
# $Id: port.tcl,v 1.126 2005/10/11 22:11:46 pguyot Exp $
# $Id: port.tcl,v 1.127 2005/10/11 22:33:44 jberry Exp $
#
# Copyright (c) 2004 Robert Shaw <rshaw@opendarwin.org>
# Copyright (c) 2002 Apple Computer, Inc.
@@ -1744,7 +1744,7 @@ switch -- $action {
# We need it to evaluate the editor, and the editor
# may want stuff from it as well, like TERM.
array unset env_save; array set env_save [array get env]
array unset env; array set env [array get boot_env]
array unset env *; array set env [array get boot_env]

# Find an editor to edit the portfile
set editor ""
@@ -1766,7 +1766,7 @@ switch -- $action {
}

# Restore internal dp environment
array unset env; array set env [array get env_save]
array unset env *; array set env [array get env_save]
}

dir {

0 comments on commit 9114567

Please sign in to comment.
You can’t perform that action at this time.