Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1371752253bcd391b33c3d4be9f42570deaa2caa6feab32c5f88b53303a6ea2b
Ticket: 3069454fffffffffffffffffffffffffffffffff
difference between bcc'ed and eval'ed regexp
User & Date: jan.nijtmans on 2026-10-12 20:00:26
Changes

  1. assignee changed to: "jan.nijtmans"
  2. closer changed to: "nobody"
  3. comment changed to:
    the [regexp] compiler does option completion, but the normal command does not?
    
    % regexp -n FoO dogfood
    bad switch "-n": must be -all, -about, -indices, -inline, -expanded, -line, -linestop, -lineanchor, -nocase, -start, or --
    while evaluating {regexp -n FoO dogfood}
    % proc a {} {regexp -n FoO dogfood}; a
    1
    
    The completion feature is tested in regexpComp.test: 21.6-7 and 24.6-7
    
  4. icomment:
    Actually, I have a problem with some options within the same command being abbreviatable and others not. No other Tcl command does that.
    
    So, my proposal variant is: [e93dfd305ea29e3b].
    
    In this specific case, I don't see any negative side-effect doing that.
    
    In general we should not advocate using abbreviated options, since it may cause incompatibilities if later options are added. But in manual typing in a shell, there's no harm, therefore many commands (especially when preceded with a minus-sign) allow that. We should - in my opinion - do the same here.
    
  5. login: "jan.nijtmans"
  6. mimetype: "text/x-fossil-wiki"
  7. severity changed to: "Minor"