summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-01-24 02:30:08 (GMT)
committerhobbs <hobbs>2000-01-24 02:30:08 (GMT)
commit3aa0e680ba354f6091a8fe8deec74179089430e9 (patch)
treeb8a68706484c678943b1632b6a33c43442fe8171
parent5c9fad7cc43d58cfd041aa40602c94693debe602 (diff)
downloadtcl-3aa0e680ba354f6091a8fe8deec74179089430e9.zip
tcl-3aa0e680ba354f6091a8fe8deec74179089430e9.tar.gz
tcl-3aa0e680ba354f6091a8fe8deec74179089430e9.tar.bz2
* library/init.tcl (auto_execok): added 'start' to list of
recognized built-in commands for COMSPEC on NT. [Bug: 2858]
-rw-r--r--library/init.tcl12
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]]
}