Artifacts Associated With Ticket 218940
Ticket change [63050f4946] (rid 92503) by nobody on 2000-10-26 01:08:16:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- 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 - foundin initialized to: "obsolete: 8.2"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to: "[auto_execok] 'start' is NT builtin"
- type initialized to: "Bug"
Ticket change [76105dbc14] (rid 105503) by welch on 2000-10-26 08:32:14:
- closedate changed to: "2000-10-26T01:32:14"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [0394a2f83f] (rid 119852) by dgp on 2001-04-19 03:30:10:
- closedate changed to: "2001-04-18T20:30:10"
- closer changed to: "dgp"
- subsystem changed to: "38. Init - Library - Autoload"