Skip to content
Tcl Source Code History Of Ticket 218940ffffffffff
Login

History Of Ticket 218940ffffffffff

Artifacts Associated With Ticket 218940ffffffffff

  1. Ticket change [63050f4946] (rid 92503) by nobody on 2000-10-26 01:08:16:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 2858 Bug
      Version: 8.2
      SubmitDate: '1999-09-21'
      LastModified: '2000-01-23'
      Severity: MED
      Status: Released
      Submitter: techsupp
      ChangedBy: hobbs
      OS: Windows NT
      Machine: X86
      FixedDate: '2000-01-23'
      FixedInVersion: 8.3
      ClosedDate: '2000-10-25'
      
      
      Name:
      
      Don Porter
      
      
      
      CVS:
      
      $Id: init.tcl,v 1.33 1999/08/19 02:59:40 hobbs Exp $
      
      
      
      Comments:
      
      library(n) claims that [auto_execok] returns a non-empty list suitable
      
          for passing to [exec] when given the name of a shell builtin.  'start'
      
          is a shell builtin for Windows NT.
      
          
      
          Frequently on c.l.t. it is asked what is a portable way to invoke
      
          'start'
      
          on Windows 95/98/NT.  After applying this patch, the answer is:
      
          
      
          eval exec [auto_execok start] [list [file nativename $filename] &]
      
          
      
          The patch is structured so that it should be easy to add other shell
      
          builtins which are present on NT but not 95/98.
      
      
      
      ReproducibleScript:
      
      auto_execok start
      
      
      
      ObservedBehavior:
      
      Returns an empty string
      
      
      
      DesiredBehavior:
      
      % auto_execok start
      
          {C:\WINNT\system32\cmd.exe} /c start
      
      
      
      Patch:
      
      Index: init.tcl
      
      ===================================================================
      
      RCS file: /cvsroot/tcl/library/init.tcl,v
      
      retrieving revision 1.33
      
      diff -c -r1.33 init.tcl
      
      *** init.tcl    1999/08/19 02:59:40     1.33
      
      --- init.tcl    1999/09/21 22:10:06
      
      ***************
      
      *** 493,500 ****
      
            }
      
            set auto_execs($name) ""
      
        
      
      !     if {[lsearch -exact {cls copy date del erase dir echo mkdir md rename 
      
      !           ren rmdir rd time type ver vol} $name] != -1} {
      
              return [set auto_execs($name) [list $env(COMSPEC) /c $name]]
      
            }
      
        
      
      --- 493,511 ----
      
            }
      
            set auto_execs($name) ""
      
        
      
      !     switch $tcl_platform(os) {
      
      !         "Windows NT" {
      
      !             # NT has different shell built-ins, notably 'start'
      
      !             set shellBuiltins [list cls copy date del erase dir echo mkdir \
      
      !                     md rename ren rmdir rd start time type ver vol]
      
      !         }
      
      !         default {
      
      !             set shellBuiltins [list cls copy date del erase dir echo mkdir \
      
      !                     md rename ren rmdir rd time type ver vol]
      
      !         }
      
      !     }
      
      ! 
      
      !     if {[lsearch -exact $shellBuiltins $name] != -1} {
      
              return [set auto_execs($name) [list $env(COMSPEC) /c $name]]
      
            }
      
      
      
      PatchFiles:
      
      library/init.tcl
      
      
      
      
      
      Changed for 8.3.0 where NT adds "start" to list. 
      -- 01/23/2000 hobbs
      
    4. foundin initialized to: "obsolete: 8.2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to: "[auto_execok] 'start' is NT builtin"
    11. type initialized to: "Bug"
  2. Ticket change [76105dbc14] (rid 105503) by welch on 2000-10-26 08:32:14:

    1. closedate changed to: "2000-10-26T01:32:14"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [0394a2f83f] (rid 119852) by dgp on 2001-04-19 03:30:10:

    1. closedate changed to: "2001-04-18T20:30:10"
    2. closer changed to: "dgp"
    3. subsystem changed to: "38. Init - Library - Autoload"