Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-10-09
03:14 • Closed ticket [954263ffff]: file executable false on auto_execok return!... artifact: 9171b728d8 user: hobbs
2004-10-08
20:58 • Open ticket [954263ffff]. artifact: 4ba18d4643 user: vincentdarley
2004-05-17
17:39 • Closed ticket [954263ffff]. artifact: fc21a1912e user: vincentdarley
2004-05-14
23:31 • New ticket [954263ffff]. artifact: 014b5569f7 user: dgp

[file executable] false on [auto_execok] return!

Closed / Fixed954263ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 22 years ago
Descriptionplain2004-05-14 23:31:18
In the ActiveTcl "b2" release
of 8.5.0.0 I see:

% file executable c:/Tcl/bin/tclsh.exe
1
% file executable c:/Tcl/bin/tclsh.EXE
0
% auto_execok tclsh
C:/Tcl/bin/tclsh.EXE

A [file executable] test on
he path returned by [auto_execok]
ought to always return true.

Has some case-sensitvity been
introduced in 8.5 ?
vincentdarleyplain2004-05-17 17:39:36
Logged In: YES 
user_id=32170

Thanks -- fixed.  This bug was introduced in the filesystem
optimization, for which native paths are not always
necessarily fully normalized (since there's no need to do
that).  A case-insensitive comparison fixes the problem, and
I can't see any other places where this will be an issue.
vincentdarleyplain2004-10-08 20:58:51
Logged In: YES 
user_id=32170

Re-opening to apply to 8.4 branch.
hobbsplain2004-10-09 03:14:51
Logged In: YES 
user_id=72656

Per note from Vince, the exe/bat/com check needs to be case
insensitive in tclWinFile.c:NativeIsExec.  This has been
corrected for 8.4.
Log in (anonymous is fine) to add a comment.