Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 271ee05334e67a36c102357cb3f0c10f15038b8da466727755be68cd9ad04443
Ticket: 55e5404b7aec68ef897acc37e3de812d31d48d4b
auto_execok on Unix does not work for built-in shell commands as documented
User & Date: apnadkarni on 2026-04-28 05:36:30
Changes

  1. comment changed to:
    I am not sure whether this is a documentation bug or implementation bug. The manpage says
    
    ```
    Determines whether there is an executable file or shell builtin by the name cmd.
    ...
    For example, to run the umask shell builtin on Linux, you would do:
    
    exec {*}[auto_execok umask]
    ```
    
    Note the reference to shell builtin in the example. However, on my Ubuntu 22 system at least, the above does not work, `auto_execok` returns an empty string.
    
  2. login: "apnadkarni"
  3. mimetype: "text/plain"