Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 97940b4785ba2804581a03d6b780da25bb5c1b284fe4a07c7b548c32ad0882ab
Ticket: 3546275fffffffffffffffffffffffffffffffff
Align auto_execok search order with [exec] on Windows
User & Date: juliannoble2 on 2025-01-27 02:52:28
Changes

  1. closedate changed to: "2460702.61977374"
  2. closer changed to: "juliannoble2"
  3. comment changed to:
    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].
    
  4. icomment:
    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.
    
  5. login: "juliannoble2"
  6. mimetype: "text/plain"
  7. severity changed to: "Minor"