Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2025-01-27
14:53 • Ticket [3546275fff] Align auto_execok search order with exec on Windows st... artifact: 3f6eb90c36 user: danckaert
02:52 • Ticket [3546275fff]: 7 changes artifact: 97940b4785 user: juliannoble2
2012-07-25
21:48 • Closed ticket [3546275fff]. artifact: 75797a933e user: dgp
2012-07-20
16:57 • Add attachment init.patch to ticket [3546275fff] artifact: 5510f4a163 user: danckaert
16:57 • Ticket [3546275fff] Align auto_execok search order with exec on Windows st... artifact: b17ba0d99e user: danckaert
09:57 • New ticket [3546275fff]. artifact: 2096269db5 user: danckaert

Align auto_execok search order with [exec] on Windows

Closed / Fixed3546275fffffffffffffffffffffffffffffffffCreated 14 years agoUpdated 2 years ago
Descriptionplain2012-07-20 09:57:17
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].
danckaertplain2012-07-20 16:57:22
File Added - 449370: init.patch
dgpplain2012-07-25 21:48:47
allow_comments - 1
juliannoble2plain2025-01-27 02:52:28
I believe this aligned auto_execok with the exec docs - but misaligned it with exec's actual behaviour.

The behaviour with this change moves further away from standard windows command resolution behaviour.
danckaertwiki2025-01-27 14:53:38

Sorry, this was an older ticket that was superseded by https://core.tcl-lang.org/tcl/tktview/1c6f6503d4.

I should have deleted it when I submitted 1c6f6503d4. Can you maybe have a look at the latter too?

Best regards

Log in (anonymous is fine) to add a comment.

Attachments: