summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-04-27 08:49:40 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-04-27 08:49:40 (GMT)
commit10d0fdda43af43d8ba42bb48b3fb73ec56c33545 (patch)
tree9daa8eb83ff170ef8ed6d252a1b78cf8ec482d99 /library
parenta92c9bd5f0598832ec94d0e6be9d13bbe832996b (diff)
parent321969beb37a3d30ebb0f675720eb8bf39f3d39b (diff)
downloadtcl-10d0fdda43af43d8ba42bb48b3fb73ec56c33545.zip
tcl-10d0fdda43af43d8ba42bb48b3fb73ec56c33545.tar.gz
tcl-10d0fdda43af43d8ba42bb48b3fb73ec56c33545.tar.bz2
Make 'auto_execok START' do the Right Thing
Diffstat (limited to 'library')
-rw-r--r--library/init.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/init.tcl b/library/init.tcl
index 389f319..28689ab 100644
--- a/library/init.tcl
+++ b/library/init.tcl
@@ -660,7 +660,7 @@ proc auto_execok name {
set execExtensions [list {} .com .exe .bat .cmd]
}
- if {$name in $shellBuiltins} {
+ if {[string tolower $name] in $shellBuiltins} {
# When this is command.com for some reason on Win2K, Tcl won't
# exec it unless the case is right, which this corrects. COMSPEC
# may not point to a real file, so do the check.