Re: Windows env-Bug?



On Sat, 21 Jul 2007 13:31:04 -0000, Torsten Edler
<Torsten.Edler@xxxxxxxxxxxxxx> wrote:

This not a tcl feature - this is a windows feature. Try this at the
windows prompt

set XX=AA

is setting the variable to value AA. can be checked by using

set

and unsetting the variable can be done by

set XX=

which is setting the variable to empty string - and in windows this
means deleting the variable! Again another check will confirm that the
variable XX is gone. Same can be done in TCL via the env array and
using parray.

While this is true, the fact that
set env(Test) ""
info exists env(Test)
returns '1' is certainly unfortunate.

It seems that
set env(Test) ""
set Tcl's copy of 'env' to "" - which is perfectly legal for a Tcl
array, thus causing [info exists] to return '1' - but when trying to
retrieve this supposedly existing element, Tcl seems to go out asking
Windows for the value - and for Windows it doesn't exist any more.
Probably it would be quite messy to fix this.

Just my 0.02
Helmut Giese
.



Relevant Pages

  • Tcl-URL! - weekly Tcl news and links (Mar 1)
    ... "I agree that providing a Windows equivalent of the [canvas ... Tcl3D offers the 3D functionality of OpenGL and other 3D libraries ... tcl3dOglExt Wrapper for enhanced OpenGL functionality. ... The Tcl Windows API extension provides ...
    (comp.lang.tcl)
  • Printing Issue - TclPro vs ActiveState
    ... I am running ACTIVESTATE TCL 8.4.13 on WINDOWS XP OS computer. ... # Use the GDI package to do direct drawing in windows ... lappend result "Can't get default printer. ...
    (comp.lang.tcl)
  • Re: wheres Tcl?
    ... Here's how I do it on windows. ... I have an IRC client that uses Tcl not only as its user scripting language for IRC ... Picking a different core to load byway of the Stubs linkage of the executable is ... it will require logic for discovering and loading a Tcl core on the ...
    (comp.lang.tcl)
  • Dr. Dobbs Tcl-URL! - weekly Tcl news and links (Mar 28)
    ... Tcl Windows API extension V0.8 aka TWAPI extension provides access ... Thanks to Arjen Markus for his so-accurate summary of Wiki activity: ...
    (comp.lang.tcl)
  • Re: Good debugger?
    ... >>Any Tcl core that was built for windows doesn't have that problem. ... >Because Cygwin, by definintion, is not native. ... that's still in script form from prodebug. ... >>But if it can't coexist with native Tcl components, ...
    (comp.lang.tcl)