Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3026e454c7a7d5ae9b466d6822fee2505ccb50b87398767f25ef748474568290
Ticket: 3069454fffffffffffffffffffffffffffffffff
difference between bcc'ed and eval'ed regexp
User & Date: serhiy.storchaka on 2026-10-10 20:15:39
Changes

  1. foundin changed to: "8.6.18, 9.0.5, 9.1.0"
  2. icomment:
    Still the same in 8.6, 9.0 and 9.1: <tt>TclCompileRegexpCmd()</tt> accepts any prefix of <tt>-nocase</tt> of at least 2 characters, while <tt>Tcl_RegexpObjCmd()</tt> requires the full option name. <tt>string compare</tt>, <tt>string equal</tt>, <tt>string map</tt>, <tt>string match</tt>, <tt>switch</tt>, <tt>lsearch</tt> and <tt>lsort</tt> all accept abbreviations of <tt>-nocase</tt>.
    
    Proposed fix in branch [/timeline?r=regexp-nocase-abbrev|regexp-nocase-abbrev]: instead of making the compiler exact, the command also accepts abbreviations of <tt>-nocase</tt>. This breaks nothing, since it only turns errors into successes. Other options still need their full names. Tests regexp-30.1 to 30.3.
    
  3. login: "serhiy.storchaka"
  4. mimetype: "text/x-fossil-wiki"