Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. 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
    
  4. foundin changed to: "obsolete: 8.2.1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to:
    dir command works on tcl command line but not in a script
    
  11. type changed to: "Bug"