.
D 2020-04-30T16:12:02.178
J assignee aku
J closer nobody
J comment test\sprocedure:\r\n-----------------------------------------\r\n%\sset\senv(Test)\s"Value"\r\nValue\r\n%\sinfo\sexists\senv(Test)\r\n1\r\n%\sputs\s$env(Test)\r\nValue\r\n%\sset\senv(Test)\s""\r\n%\sinfo\sexists\senv(Test)\r\n1\r\n%\sputs\s$env(Test)\r\ncan't\sread\s"env(Test)":\sno\ssuch\svariable\r\n-----------------------------------------\r\n\r\n[info\sexists\s..]\sreturns\s1\sbut\sthe\svariable\scannot\sbe\sdereferenced.\r\n\r\n%\sputs\s$tcl_patchLevel\r\n8.4.13\r\n%\sparray\stcl_platform\r\ntcl_platform(byteOrder)\s=\slittleEndian\r\ntcl_platform(machine)\s\s\s=\sintel\r\ntcl_platform(os)\s\s\s\s\s\s\s\s=\sWindows\sNT\r\ntcl_platform(osVersion)\s=\s5.0\r\ntcl_platform(platform)\s\s=\swindows\r\n\r\nSame\son\sWindows\sXP\s(Windows\sNT\s5.1)\swith\sTCL\s8.4.11,\r\nno\sproblem\son\sLinux\sand\sUnix\s(AIX),\s""\sis\sreturned.\r\n\r\nadditional\sinfos\sfrom\scomp.lang.tcl\r\n========================================\r\n\sStill\sstranger:\swhen\syou\sdo\san\s"array\snames\senv"\sbefore\s"info\sexists\r\nenv(Test)"\sit\svanishes\sin\sTCL.\r\n\r\n(bin)\s38\s%\sinfo\spatchlevel\r\n8.4.13\r\n(bin)\s39\s%\sset\senv(Test)\s"X"\r\nX\r\n(bin)\s40\s%\sinfo\sexists\senv(Test)\r\n1\r\n(bin)\s41\s%\sset\senv(Test)\s""\r\n(bin)\s42\s%\sinfo\sexists\senv(Test)\r\n1\r\n(bin)\s43\s%\sarray\snames\senv\r\nHOME\sPROCESSOR_IDENTIFIER\sComSpec\sDEVMGR_SHOW_DETAILS\r\nDEVMGR_SHOW_NONPRESENT_DEVICES\sJSERV\sHOMEDRIVE\sALLUSERSPROFILE\r\nFP_NO_HOST_CHECK\sSESSIONNAME\sPROCESSOR_REVISION\sPATHEXT\sLOGONSERVER\r\nVS80COMNTOOLS\sUSERDOMAIN\sPROCESSOR_LEVEL\sDEFAULT_CA_NR\sUSERPROFILE\r\nUSERNAME\sCOMPUTERNAME\sTREECTRL_LIBRARY\sTMP\sSystemRoot\r\nPROCESSOR_ARCHITECTURE\sOS\sProgramFiles\sAPPDATA\sCommonProgramFiles\r\nWV_GATEWAY_CFG\swindir\sPath\sTEMP\sHOMEPATH\sVU_LIBRARY\sSystemDrive\r\nPERL5LIB\sNUMBER_OF_PROCESSORS\r\n(bin)\s44\s%\sinfo\sexists\senv(Test)\r\n0\r\n(bin)\s45\s%\r\n========================================\r\nSo\sit\sseems\sthat\s[array\snames]\sdoes\ssome\smagic\swhen\sthe\sarray\sin\r\nquestion\sis\s'env'\s-\snamely\sunsetting\sthe\sinternal\s'env'\sarray\sand\sthen\r\nre-populating\sit\sby\sasking\sWindows\sfor\sall\sexisting\senvironment\r\nvariables\s-\set\svoilà\sthey're\sboth\sin\ssync\sagain.
J icomment Is\sthis\sthe\ssame\sbug?\sThe\sresult\schanges\swith\severy\sother\sinvocation.\s\r\nThe\ssame\sthing\shappens\swith\sC??????\sfor\sCOMSPEC\sand\sComSpec.\sNotably,\sPath\s\r\nand\sComSpec\sare\sthe\stwo\senvironment\svariables\sthat\sare\ssupposed\sto\sget\s\r\nspecial\streatment\son\sWindows,\sby\sbeing\suppercased.\sThis\scauses\sproblems\swith\s\r\ntcltest\s2.4.0\swhen\scleanupTests\stries\sto\srestore\sthe\senvironment\sarray.\r\n\r\n(Desktop)\s1\s%\sarray\snames\senv\sP???\r\nPATH\sPath\r\n(Desktop)\s2\s%\sarray\snames\senv\sP???\r\nPATH\r\n(Desktop)\s3\s%\sarray\snames\senv\sP???\r\nPATH\sPath\r\n(Desktop)\s4\s%\sarray\snames\senv\sP???\r\nPATH\r\n(Desktop)\s5\s%\sinfo\spatchlevel\r\n8.6.6\r\n(Desktop)\s6\s%\sparray\stcl_platform\r\ntcl_platform(byteOrder)\s\s\s\s\s=\slittleEndian\r\ntcl_platform(engine)\s\s\s\s\s\s\s\s=\sTcl\r\ntcl_platform(machine)\s\s\s\s\s\s\s=\sintel\r\ntcl_platform(os)\s\s\s\s\s\s\s\s\s\s\s\s=\sWindows\sNT\r\ntcl_platform(osVersion)\s\s\s\s\s=\s10.0\r\ntcl_platform(pathSeparator)\s=\s;\r\ntcl_platform(platform)\s\s\s\s\s\s=\swindows\r\ntcl_platform(pointerSize)\s\s\s=\s4\r\ntcl_platform(threaded)\s\s\s\s\s\s=\s1\r\ntcl_platform(user)\s\s\s\s\s\s\s\s\s\s=\sHTSP1395\r\ntcl_platform(wordSize)\s\s\s\s\s\s=\s4
J login Busirane
J mimetype text/plain
J severity Minor
J username Busirane
K 1758527fffffffffffffffffffffffffffffffff
U Busirane
Z 4070d20720f5fb52550e7d1787c917c1