Changeset 14570 for trunk/base


Ignore:
Timestamp:
Oct 11, 2005, 10:33:44 PM (19 years ago)
Author:
jberry
Message:

"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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port/port.tcl

    r14569 r14570  
    33exec @TCLSH@ "$0" "$@"
    44# port.tcl
    5 # $Id: port.tcl,v 1.126 2005/10/11 22:11:46 pguyot Exp $
     5# $Id: port.tcl,v 1.127 2005/10/11 22:33:44 jberry Exp $
    66#
    77# Copyright (c) 2004 Robert Shaw <rshaw@opendarwin.org>
     
    17451745                                                # may want stuff from it as well, like TERM.
    17461746                                                array unset env_save; array set env_save [array get env]
    1747                                                 array unset env; array set env [array get boot_env]
     1747                                                array unset env *; array set env [array get boot_env]
    17481748                                               
    17491749                                                # Find an editor to edit the portfile
     
    17671767                                               
    17681768                                                # Restore internal dp environment
    1769                                                 array unset env; array set env [array get env_save]
     1769                                                array unset env *; array set env [array get env_save]
    17701770                                        }
    17711771                                       
Note: See TracChangeset for help on using the changeset viewer.