Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Fix auto_execok on Windows

Closed / Fixed1c6f6503d4fb512d4d3d6c9cd1cfa50d34c5308cCreated 11 years agoUpdated 199 days ago
Descriptionwiki2016-03-09 16:26:57
There are several problems with auto_execok on Windows. See for example these tickets: 4ab2ccc4a2, 1244733, e21fc32c2a. Another issue is that the search path constructed by [auto_execok] is quite ad-hoc, while the path used by [exec] may be dependent on the OS version and even on registry values, as documented on http://msdn.microsoft.com/en-us/library/windows/desktop/aa365527(v=vs.85).aspx.

All this can be solved by aligning the search procedure of [auto_execok] with [exec]. To do this, a small helper proc is needed to do call the appropriate C functions from [auto_execok].

I'm attaching a patch to do this. Note that I didn't know where precisely to declare and create the helper functions, so this may require some review.

danckaertwiki2017-05-24 07:37:51

I've replaced the patch with an updated version. Previous one did not always return a list.

jan.nijtmansplain2017-05-24 08:40:32
I like this solution! Not enough severity to rush it into 8.6.7, but I'll have a closer look soon.
apnadkarnimarkdown2026-05-18 10:36:17

Fixed in TIP 753 commit de961e8d.

apnadkarni Closed ticket [1c6f6503d4]. [History diff]2026-05-18 10:36:37
Log in (anonymous is fine) to add a comment.