Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-17
05:50 • Ticket [218092ffff] hang up on "exec command.com / c dir" status s... artifact: 6b8f7fd18c user: dgp
2000-10-26
08:14 • Closed ticket [218092ffff]. artifact: 61838d2fb2 user: welch
00:53 • New ticket [218092ffff]. artifact: 1882b72c51 user: nobody

hang up on "exec command.com / c dir"

Closed / Invalid218092ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:53:04
OriginalBugID: 1756 Bug
Version: 8.1b3
SubmitDate: '1999-04-08'
LastModified: '1999-04-16'
Severity: CRIT
Status: Closed
Submitter: pat
ChangedBy: surles
OS: Windows 95
Machine: X86
FixedDate: '2000-10-25'
ClosedDate: '1999-04-16'


Name:
Chengye Mao

Comments:
This problem has been there since Tcl81a2. I hope it will be solved in
    the final release of Tcl81.

ReproducibleScript:
exec command.com / c dir
    
    It hangs up in both tclsh81 and wish81.

ObservedBehavior:
I reported the same problem on April 7, but was not accurate.  In the
    previous report, I said the problem had occured since Tcl81b2. As a
    matter of fact, I verified the same problem exists in tcl81a2 before I
    am writing the report.

DesiredBehavior:
A strange thing is that the script
    
    dir
    
    works fine in tclsh81 but
    
    exec command.com / c dir
    
    hangs up.
    
    Both "dir" and "exec command.com / c dir" hang up in console
    (wish81.exe)



04/16/1999 14:38 - surles - I replied to this guy when I closed out the bug.  Here is the message I sent him.

I looked into the bug you reported and have some answers for you.  Unfortunately this seems 
like a Windows bug.  The command line you sent has a space between the '/' and 'c' which 
confuses command.com.  When I run this command in wish81.exe then watch the task 
manager, I noticed the ntvmd.exe was the executable that was spinning the CPU.

Fortunately there are several solutions:

1) You should be using the string in $env(ComSpec) to launch a Windows shell.  This will 
guarantee that your are using the MS "approved" shell.

2) If you remove the space between the '/' and 'c', I believe you will get the desired results.

Since we are not in the business of fixing Windows bugs, I am going to close out this bug.  If 
you feel that I am misunderstanding something, please email me back, and we'll figure it out.
welch Closed ticket [218092ffff]. [History diff]2000-10-26 08:14:46
dgp Ticket [218092ffff]: 5 changes [History diff]2001-04-17 05:50:44
Log in (anonymous is fine) to add a comment.