Tcl Source Code

View Ticket
Login
Ticket UUID: 093353fedbf7a04e8937664b2b03cd5677bd63b4
Title: auto_execok infinite loop
Type: Bug Created on: 2023-01-19 13:51:57
Submitter: anonymous Assigned to: nobody
Subsystem: 16. Commands A-H Severity: Important
Priority: 5 Medium Last modified: 2026-05-22 10:48:56
Status: Closed Closed by: apnadkarni
Resolution: Fixed Closed on: 2026-05-22 10:48:56
Version: 8.6.11
Description:
auto_execok command does not return if string contains leading ~ character, for example

auto_execok ~foobar

Tcl versions 8.6.9, 8.6.10, 8.6.11 on Windows 10
User Comments:
fvogel added on 2023-01-19 20:41:34:
I'm not reproducing this on Windows 11 with 8.6.9 or the current tip of core-8-6-branch.

apnadkarni added on 2026-05-22 10:48:56:

Cannot reproduce with 9.0 or 9.1. Closing.

% writeFile ~foobar.bat ""
% auto_execok ~foobar
{.\~foobar.bat}
% writeFile ~foo.vbs ""
% auto_execok ~foo
{C:\WINDOWS\System32\WScript.exe} {.\~foo.vbs}