Overview
| Artifact ID: | ba3afa8bbed51b6e4648e5eefb8c51eea9d7f8d1 |
|---|---|
| Ticket: | 218754ffffffffffffffffffffffffffffffffff
"info exists" doesn't see env variables |
| User & Date: | nobody on 2000-10-26 01:04:58 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
OriginalBugID: 1999 Bug Version: 8.1 SubmitDate: '1999-05-06' LastModified: '2000-07-27' Severity: MED Status: Released Submitter: pat ChangedBy: ericm OS: Solaris OSVersion: 2.6 Machine: Other FixedDate: '2000-07-27' FixedInVersion: 8.2.2 ClosedDate: '2000-10-25' Name: Fred Roeber CustomShell: Nothing ReproducibleScript: In our C program that initializes TCL/TK we did: Tcl_PutEnv("TM_PATH=xxx") In our initial TCL script that we invoked from C we tried to do: if {[info exists env(TM_PATH)] == 1} { In TCL 8.1 this test always failed. In TCL 8.0.4 it worked as expected. For TCL 8.1 we had to instead use: if {[catch {set tp $env(TM_PATH)} err]} { This works. It would appear that there is a problem with the "info exists" command detecting certain variables. ObservedBehavior: As explained above, "info exists" didn't work as expected. It didn't detect variable. DesiredBehavior: As explained earlier, we expected "info exists" to work like it used to. I am unable to duplicate this behavior in Tcl 8.2.2 or 8.3.1. 8.1.x is generally considered to be an unstable release now. This bug was likely fixed between that version and the current versions. I'm sorry it took so long to notify you. If you are still having problems with this bug after upgrading, please let us know. Thanks for reporting the problem. Eric Melski The Other Tcl Guy ericm at ajubasolutions.com Ajuba Solutions -- 07/27/2000 ericm - foundin changed to: "obsolete: 8.1"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "07. Variables"
- title changed to: ""info exists" doesn't see env variables"
- type changed to: "Bug"