Overview
| Artifact ID: | 32ba13684fa757bd5435fceddcfad6aa642b83a79f9edc169becb6af84fbe20a |
|---|---|
| Ticket: | 596936dd2d55ba70dcdc980b9f58b3dccf248605
auto_execok uses cmd in preference to cmd.exe despite path order (windows) |
| User & Date: | sebres on 2023-11-06 11:12:53 |
Changes
- icomment:
<blockquote>> Can anyone clarify why exec wasn't changed instead and what exactly is going on here?</blockquote> Basically no matter what was primary the goal for the change, it got implemented not quite correct.<br/> Because the behaviour deviates now from standard windows search sequence, see [https://learn.microsoft.com/en-us/previous-versions//cc723564(v=technet.10)#command-search-sequence|Command Search Sequence] <div style="padding-left:10pt"><i>...<br/> Note that the shell tries all possible file extensions in a specific directory before moving on to search the next directory (if there is one).</i></div> Since [6909864f5655c69] Tcl does it vice versa (tries all possible directories for a specific file extension and then start from scratch for next extension).<br/> This contradicts also a common sense a bit: if no extension specified, one expects to find <b>first occurrence in path</b> (no matter which extension).
- login: "sebres"
- mimetype: "text/x-fossil-wiki"