From 3aa0e680ba354f6091a8fe8deec74179089430e9 Mon Sep 17 00:00:00 2001 From: hobbs Date: Mon, 24 Jan 2000 02:30:08 +0000 Subject: * library/init.tcl (auto_execok): added 'start' to list of recognized built-in commands for COMSPEC on NT. [Bug: 2858] --- library/init.tcl | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/library/init.tcl b/library/init.tcl index c5afbe5..1797d50 100644 --- a/library/init.tcl +++ b/library/init.tcl @@ -3,7 +3,7 @@ # Default system startup file for Tcl-based applications. Defines # "unknown" procedure and auto-load facilities. # -# RCS: @(#) $Id: init.tcl,v 1.35 1999/11/10 02:52:10 hobbs Exp $ +# RCS: @(#) $Id: init.tcl,v 1.36 2000/01/24 02:30:08 hobbs Exp $ # # Copyright (c) 1991-1993 The Regents of the University of California. # Copyright (c) 1994-1996 Sun Microsystems, Inc. @@ -491,8 +491,14 @@ proc auto_execok name { } 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} { + set shellBuiltins [list cls copy date del erase dir echo mkdir \ + md rename ren rmdir rd time type ver vol] + if {[string equal $tcl_platform(os) "Windows NT"]} { + # NT includes the 'start' built-in + lappend shellBuiltins "start" + } + + if {[lsearch -exact $shellBuiltins $name] != -1} { return [set auto_execs($name) [list $env(COMSPEC) /c $name]] } -- cgit v0.12