Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 49311822fd3c32e80e09e236d5cf632d1362cc11bc3409d5bd149de5034cf8ae
Ticket: 3069454fffffffffffffffffffffffffffffffff
difference between bcc'ed and eval'ed regexp
User & Date: serhiy.storchaka on 2026-10-12 20:37:46
Changes

  1. icomment:
    That is a decision for you. I only considered variants for
    <code>-nocase</code>: either make it never abbreviated (simpler, but breaking,
    and inconsistent with <code>-nocase</code> in other commands), or always
    abbreviated. Making all options abbreviatable is a wider change.
    
    Note that with all options abbreviatable some prefixes are ambiguous:
    <code>-a</code> (<code>-all</code>, <code>-about</code>) and
    <code>-i</code>/<code>-in</code> (<code>-indices</code>, <code>-inline</code>)
    in <code>regexp</code>, and <code>-l</code>/<code>-li</code>/<code>-lin</code>
    in both commands. <code>-line</code> can only be used in full, and
    <code>-a</code> would mean <code>-all</code> in <code>regsub</code> but be an
    error in <code>regexp</code>. <code>-n</code> is unique in both.
    
    Two related mismatches between compiled code and the command, where the
    compiler accepts an abbreviation that the command rejects as ambiguous:
    [1ae976e237] (<code>clock clicks -mi</code>, new in 9.1) and [8ab06e31e3]
    (<code>self n</code>).
    
  2. login: "serhiy.storchaka"
  3. mimetype: "text/x-fossil-wiki"