Tcl Source Code

View Ticket
Login
Ticket UUID: 3546275
Title: Align auto_execok search order with [exec] on Windows
Type: Patch Version: None
Submitter: danckaert Created on: 2012-07-20 09:57:17
Subsystem: 38. Init - Library - Autoload Assigned To: dgp
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2012-07-25 21:48:47
Resolution: Fixed Closed By: dgp
    Closed on: 2012-07-25 14:48:47
Description:
Extract from [exec] man page: "When attempting to execute an application, exec first searches for the name as it was specified. Then, in order, .com, .exe, and .bat are appended to the end of the specified name and it searches for the longer name."

However, in [auto_execok], the search order is currently opposite: it first looks for all different extensions in the first directory of the search path. Then it goes on to the second directory in the search path, etc.

The attached patch aligns [auto_execok] with [exec].
User Comments: dgp added on 2012-07-25 21:48:47:

allow_comments - 1

danckaert added on 2012-07-20 16:57:22:

File Added - 449370: init.patch

Attachments: