diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2012-04-27 08:49:40 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2012-04-27 08:49:40 (GMT) |
commit | b412ad6981173a44ab0f31ad66b9c429b52ebe30 (patch) | |
tree | 9daa8eb83ff170ef8ed6d252a1b78cf8ec482d99 | |
parent | efeae981600cc17e5c9b076cf767c7e9a1efcfd8 (diff) | |
parent | d0206ab72a48d29bbdf3814853a857d29fe6923f (diff) | |
download | tcl-b412ad6981173a44ab0f31ad66b9c429b52ebe30.zip tcl-b412ad6981173a44ab0f31ad66b9c429b52ebe30.tar.gz tcl-b412ad6981173a44ab0f31ad66b9c429b52ebe30.tar.bz2 |
Make 'auto_execok START' do the Right Thing
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | library/init.tcl | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2012-04-27 Donal K. Fellows <dkf@users.sf.net> + + * library/init.tcl (auto_execok): Allow shell builtins to be detected + even if they are upper-cased. + 2012-04-26 Jan Nijtmans <nijtmans@users.sf.net> * generic/tclStubInit.c: get rid of _ANSI_ARGS_ 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. |