Bug in ::env Array Under Windows
Closed / Invalid217835ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:44:37
OriginalBugID: 1683 Bug
Version: 8.0.5
SubmitDate: '1999-03-31'
LastModified: '1999-04-07'
Severity: MED
Status: Closed
Submitter: pat
ChangedBy: surles
OS: Windows NT
OSVersion: 4.0 (sp3)
Machine: X86
FixedDate: '2000-10-25'
ClosedDate: '1999-04-07'
Name:
David White
Extensions:
None except Tk
CustomShell:
none
ReproducibleScript:
console show
if {[info exist ::env(TMP)]} {
puts "It's there: $::env(TMP)"
} else {
puts "Not found"
}
vwait bubba
ObservedBehavior:
I recently downloaded TclPro and it installed 8.0.5 of Tcl/Tk.
Previously, I was using 8.0p2. Both are running under Windows NT4.0
(sp3). The problem arises when the TMP environment variable has been set
as "tmp" rather than "TMP". Under DOS/Windows, the OS treats the two as
equal (TMP==tmp==TmP, etc). Using 8.0p2, the script shown above works
regardless of the case of the environment variable's name. Under 8.0.5,
the case of the environment variable's name is significant. This change
is not documented anywhere I can find.
DesiredBehavior:
I expect that the shell (in this case a Tcl/Tk shell) treats environment
variable names the same way that the OS does. Therefore, the behavior
found in 8.0p2 is "correct" in my opinion. In addition, changes of this
nature should be documented. I looked on the web pages for compatibility
changes and this was NOT listed.
Thanks,
David
---
Duplicate to bug ID 1677, 1299 and 1501.
welch Closed ticket [217835ffff].
[History diff]2000-10-26 07:59:46
dgp Ticket [217835ffff]: 3 changes
[History diff]2001-04-13 23:16:51
Log in (anonymous is fine) to add a comment.