Windows env-Bug?
- From: Gerhard Reithofer <gerhard.reithofer@xxxxxxxxxxxxxx>
- Date: Sat, 21 Jul 2007 14:15:36 +0200
Hi TCLers
I've found a strange behaviour in Windows which I would call a bug:
-----------------------------------------
% set env(Test) "Value"
Value
% info exists env(Test)
1
% puts $env(Test)
Value
% set env(Test) ""
% info exists env(Test)
1
% puts $env(Test)
can't read "env(Test)": no such variable
-----------------------------------------
[info exists ..] returns 1 but the variable cannot be dereferenced.
% puts $tcl_patchLevel
8.4.13
% parray tcl_platform
tcl_platform(byteOrder) = littleEndian
tcl_platform(machine) = intel
tcl_platform(os) = Windows NT
tcl_platform(osVersion) = 5.0
tcl_platform(platform) = windows
Same on Windows XP (Windows NT 5.1) with TCL 8.4.11,
no problem on Linux and Unix (AIX), "" is returned.
Has anyone else seen this behaviour before?
Does one have a good idea as workaround?
Controlling the environment is essential to a project where I'm working
on.
--
Gerhard Reithofer
Tech-EDV Support Forum - http://support.tech-edv.co.at
.
- Follow-Ups:
- Re: Windows env-Bug?
- From: Torsten Edler
- Re: Windows env-Bug?
- Prev by Date: Re: convert -> 8- to 7-bit
- Next by Date: Re: Windows env-Bug?
- Previous by thread: ANNOUNCE: Multi-column listbox package Tablelist 4.8
- Next by thread: Re: Windows env-Bug?
- Index(es):
Relevant Pages
|