Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1f6a7a6ca11bf6c2f7e5c97701ea766a9891a3cf9863ed23162f491f22057b11
Ticket: a127bf6415cbfa420ed96dcb9144ab4263f1e6bf
auto_path is documented in two manpages
User & Date: tberg on 2026-06-16 13:33:32
Changes

  1. icomment:
    This cannot be resolved unambiguously as both manual pages mix things. It is not only `auto_path` but also `env(TCLLIBPATH)` and `env(TCL_LIBRARY)` as well as `tcl_nonwordchars` and `tcl_wordchars` which are documented in both places.
    
    Judging from the NAME of the manual pages, these are the topics:
    
    - library.n = standard library of Tcl procedures
    - tclvars.n = variables used by Tcl
    
    So, in an ideal situation, the library page should only document what comes from the Tcl library whereas the tclvars page should take the rest, i.e. what comes from Tcl directly (disregarding the Tcl library).
    
    However, these two cannot be separated. `tclInterp.c` (core) is setting `auto_path` under some circumstances as does `auto.tcl` (library).
    
    So, what is the most natural place? Let's keep it in tclvars.n as it is not solely the Tcl library but also the core that has a role here. Also, tclvars.n is the manual page where `auto_path` is linked to from the main page "html/TclCmd/index.html".
    
    I have now kept the documentation in tclvars_n and removed the slightly shorter one from library.n. Where `auto_path` is mentioned in library.n, I have inserted a reference to the tclvars page.
    
    
    What should we do about the others (`env(TCLLIBPATH), env(TCL_LIBRARY), tcl_nonwordchars, tcl_wordchars`)? Same procedure as with `auto_path`?
    
  2. login: "tberg"
  3. mimetype: "text/x-markdown"
  4. resolution changed to: "Fixed"
  5. status changed to: "Pending"