2002-11-17 Christopher Hylands * lang/ExecCmd.java: Under Solaris 8 with JDK1.4.1, there was a problem where exec pwd was not returning. The fix was to add join() calls for the gobbler threads. * lang/BlendExtension.java: Updated to patch level version 1.1.5 2002-10-22 * lang/library/init.tcl: unknown(): Do not use a back slash here, it causes problems when the jar file is built under Windows and run under Unix 2002-10-11 * lang/ExecCmd.java: After upgrading to XP SP1, ptjacl started having problems with the tcl exec command. When I run exec ls, I get a window that says: 16 bit MS-DOS Subsystem c:\WINDOWS\system32\ntvdm.exe Error while setting up environment for the application. Choose 'Close' to terminate the application. One issue is that it looks like tcl/lang/ExecCmd.java was not detecting that we were running xp. Operating systems earlier than NT do not have a cmd command Under NT, 2k and now XP, The tcl exec command generates two files c:/temp/jacl1.bat and jacl2.bat jacl1.bat contains: @echo off cmd.exe /C C:\TEMP\jacl2.bat jacl2.bat contains the command to run: @echo off c: cd \cxh\src\ptjacl ls tcl exec does 'command.com /c c:\temp\jacl1.bat' Oddly, if I execute the above command by hand, then everything starts to work in the window that I ran the command by hand in cxh@DOPLAP03 ~/src/ptjacl $ java -classpath . tcl.lang.Shell % exec ls --->> Here is where the error window popped up % exit cxh@DOPLAP03 ~/src/ptjacl $ cd c:/temp cxh@DOPLAP03 c:/temp $ ls Deployment adobe jacl1.bat jacl2.bat cxh@DOPLAP03 c:/temp $ command.com /c jacl1.bat tcl cxh@DOPLAP03 c:/temp $ cd ~/src/ptjacl cxh@DOPLAP03 ~/src/ptjacl $ java -classpath . tcl.lang.Shell % exec ls tcl % --->> Note that the exec ls worked! http://developer.java.sun.com/developer/bugParade/bugs/4716241.html is of interest, it refers to http://support.microsoft.com/default.aspx?scid=kb;EN-US;q196453 and http://webbugs.sfbay:8080/rt/incidentDisplay?incidentID=144228 The sun bug states that everything starts to work after running command.com once by hand. I think what happened was that before Windows XP SP1, command.com was being run somewhere, and then after SP1, command.com was not being run? I dunno. http://developer.java.sun.com/developer/bugParade/bugs/4206776.html is an old bug, but there is a comment that suggests running cmd.exe, which we can do instead of command.com I modified tcl/lang/ExecCmd.java so that it uses cmd.exe instead of command.com. I also added some smarts about how Tcl determines whether it is running NT or later or not ('98 does not have cmd.exe). * lang/RegsubCmd.java: Added better error message if the regex code cannot be found * lang/BlendExtension.java: Updated to patch level version 1.1.4 1999-03-19 Christopher Hylands * lang/TclException.java Added @serial tags to get JDK1.2 javadoc to shut up * tcl/FormatCmd.java cvtDbltToStr(): If we have a NaN, return NaN: if ((new Double(dblValue)).isNaN()) { return "NaN"; } 1999-03-18 Christopher Hylands * Added ClockCmd.java Christian Krone, SQL Datenbanksysteme GmbH