From: SourceForge.net <no...@so...> - 2004-03-16 23:20:40
|
Bugs item #232731, was opened at 2001-02-16 10:52 Message generated for change (Comment added) made by hobbs You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=232731&group_id=12997 Category: 54. [console] Group: None Status: Open Resolution: None Priority: 6 Submitted By: Brian H. Toby (briantoby) Assigned to: Jeffrey Hobbs (hobbs) Summary: exec grabs stdin -- wish8x.exe on Win9x only Initial Comment: Problem summary: The exec command can be used to run a command in a shell [console] window on every platform except Win-95/98 (-ME?). On Unix this is done with exec xterm -e /bin/sh -c ... on Win-NT this is done with exec $env(COMSPEC) /c "start ..." On Win-95/98 (I have not tried -ME) if one tries this, the DOS window the keyboard is not connected to stdin. This is not a Windows limitation, but rather a problem in wish (I have tested 8.0.3, 8.2.3 and 8.4a2). Example: create a batch file, C:\test\test.bat, that contains three commands: PAUSE DIR PAUSE try to run this file from wish8x.exe using (for example) exec start {c:\test\test.bat} & the DOS box is created and you see the prompt "Press any key to continue..." but the window is hung. Note this does work from tclsh.exe. Details: This appears to be a problem with the exec command rather than an inherent limitation in Windows, because it is possible to achieve the correct result using the WINEXEC package (http://www.du.edu/~mschwart/tclextensions.html#WinexecTbl). The winexec command uses a direct call to CreateProcess result = CreateProcess (argv[1], 0, 0, 0, 0, DETACHED_PROCESS, 0, options.dirnameptr, &si, &pi); so the problem must be related to all of the extra stuff that the exec command does. It would be good to have this limitation eliminated from wish on the Win-9x platform, rather than require use of a binary package and a non-standard command to achieve equivalence with wish on Unix and Win-NT. Brian ---------------------------------------------------------------------- >Comment By: Jeffrey Hobbs (hobbs) Date: 2004-03-16 15:20 Message: Logged In: YES user_id=72656 Yes, it's a Win9x only issue. ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 2004-03-16 15:13 Message: Logged In: YES user_id=80530 Any news on this idle report? Is it only valid on Win 98, and thus, on its way to becoming "Out of Date" ? ---------------------------------------------------------------------- Comment By: Jeffrey Hobbs (hobbs) Date: 2001-10-22 12:14 Message: Logged In: YES user_id=72656 Confirmed on Win98 and WinME for 8.3.4. David Gravereaux had some ideas in a recent comp.lang.tcl thread that may apply to this (not getting them in google right now though...) ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 2001-09-05 09:20 Message: Logged In: YES user_id=80530 This was unassigned, and perhaps overlooked. Assigning to maintainer. Any ideas on this one? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=232731&group_id=12997 |