Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0a5740e08e232aa8d1a07c9ebf90c52e0447e5a8
Ticket: e21fc32c2aaa7cd019815dde0249386021f4c74d
auto_execok does not check executability on Windows
User & Date: danckaert on 2016-03-08 14:35:59
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    On Windows, [auto_execok] lies when there is a (non-executable) file without extension next to the same file with .exe extension. For example, when the current directory contains "foo" and "foo.exe", [auto_execok foo] will return "foo".
    This can be fixed by checking for executability before returning. This was probably not done in the past because [file executable] was not reliable on Windows. However, these issues were fixed in http://core.tcl.tk/tcl/info/23cc9bf170fd4489. So I think [file executable] can now safely be used in [auto_execok].
    
  5. foundin changed to: "8.6.5"
  6. is_private changed to: "0"
  7. login: "danckaert"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "0e8530048dde617c952863a9160a09c72773c1ee"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "danckaert"
  14. subsystem changed to: "38. Init - Library - Autoload"
  15. title changed to:
    auto_execok does not check executability on Windows
    
  16. type changed to: "Patch"