Skip to content
Tcl Source Code View Ticket
Login

View Ticket

"info exists" does not sync with environ array.

Closed / Fixed218687ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:04:08
OriginalBugID: 1737 Bug
Version: 8.1b3
SubmitDate: '1999-04-06'
LastModified: '1999-09-16'
Severity: SER
Status: Released
Submitter: surles
ChangedBy: hobbs
OS: All
OSVersion: NA
Machine: NA
FixedDate: '1999-09-16'
FixedInVersion: 8.2
ClosedDate: '2000-10-25'


The info exists does not sync the Tcl env array with the environ array.  Example script:

    interp create i 
    i eval { set env(THIS_SHOULD_EXIST) a}

    info exists env(THIS_SHOULD_EXIST)
    set env(THIS_SHOULD_EXIST)
    info exists env(THIS_SHOULD_EXIST)



The fixed is to put special case code in the info exists command that fires the traces for the env array.  04/06/1999 14:35 - surles -
--
This works as expected in 8.2 (returns i, a, 1, a, 1) 
-- 09/16/1999 hobbs
welch Closed ticket [218687ffff]. [History diff]2000-10-26 08:27:11
dgp Ticket [218687ffff]: 4 changes [History diff]2001-04-17 05:55:10
Log in (anonymous is fine) to add a comment.