diff options
author | hobbs <hobbs@noemail.net> | 2000-01-24 02:30:07 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2000-01-24 02:30:07 (GMT) |
commit | 980926dee9f275fbbea979d0965c74a0b45d6662 (patch) | |
tree | b8a68706484c678943b1632b6a33c43442fe8171 /library/init.tcl | |
parent | a1a9ff082565fb779d12ecc6244d6edd6721e435 (diff) | |
download | tcl-980926dee9f275fbbea979d0965c74a0b45d6662.zip tcl-980926dee9f275fbbea979d0965c74a0b45d6662.tar.gz tcl-980926dee9f275fbbea979d0965c74a0b45d6662.tar.bz2 |
* library/init.tcl (auto_execok): added 'start' to list of
recognized built-in commands for COMSPEC on NT. [Bug: 2858]
FossilOrigin-Name: f0de569609f42bf9e80d884b03a466f520692dc8
Diffstat (limited to 'library/init.tcl')
-rw-r--r-- | library/init.tcl | 12 |
1 files 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]] } |