Overview
| Artifact ID: | 19ef074c339915f3da66079179ec826dd0d0d3b2 |
|---|---|
| Ticket: | 218301ffffffffffffffffffffffffffffffffff
dir command works on tcl command line but not in a script |
| User & Date: | nobody on 2000-10-26 00:55:54 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
OriginalBugID: 3651 Bug Version: 8.2.1 SubmitDate: '1999-11-23' LastModified: '1999-11-29' Severity: LOW Status: Closed Submitter: techsupp ChangedBy: hobbs OS: Windows 95 FixedDate: '2000-10-25' ClosedDate: '1999-11-29' Name: paul battersby ReproducibleScript: If I type dir on the tcl command line, it provides me with the output of the DOS dir command. If I put this same line in a script and source it instead, I get an error that says invalid command name "dir" ObservedBehavior: dir command did not work from within a script DesiredBehavior: anything that works from the command line should work in a script Pilot error. Running in interactive mode, Tcl will automatically try and exec outside commands, which dir is (actually, a subcommand of $env(COMSPEC). The user needs exec $env(COMSPEC) /c dir or even better, use the Tcl file commands instead. -- 11/29/1999 hobbs
- foundin changed to: "obsolete: 8.2.1"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "69. Other"
- title changed to:
dir command works on tcl command line but not in a script
- type changed to: "Bug"