Skip to content
Tcl Source Code History Of Ticket 7e4d5a0a2b
Login

History Of Ticket 7e4d5a0a2b

Artifacts Associated With Ticket 7e4d5a0a2b

  1. Ticket change [4b6a0425c1] (rid 146758) by apnadkarni on 2016-05-20 13:10:13:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      As seen below regexp behaviour is different based on -nocase (or any option) being passed as literal or through a variable.
      
      % set switch -nocase
      -nocase
      % regexp $switch "Looking for -nocase"
      1
      % regexp -nocase "Looking for -nocase"
      wrong # args: should be "regexp ?-option ...? exp string ?matchVar? ?subMatchVar ...?"
      
      dgp from chat:
      
      dgp	I'd guess a compiler bug
      [18:36]	dgp	% set cmd regexp
      		regexp
      		% set switch -nocase
      		-nocase
      		% $cmd $switch "Looking for -nocase"
      		wrong # args: should be "regexp ?-option ...? exp string ?matchVar? ?subMatchVar ...?"
      
    5. foundin initialized to: "8.6.5"
    6. is_private initialized to: "0"
    7. login: "apnadkarni"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Minor"
    11. status initialized to: "Open"
    12. submitter initialized to: "apnadkarni"
    13. subsystem initialized to: "47. Bytecode Compiler"
    14. title initialized to:
      regexp behaviour differs based on passing option as literal v/s variable
      
    15. type initialized to: "Bug"
  2. Ticket change [b54a883b5c] (rid 257562) by serhiy.storchaka on 2026-10-11 07:39:52:

    1. foundin changed to: "8.6.18, 9.0.5, 9.1.0"
    2. icomment:
      Same cause as [1902890fff]. Proposed fix in branch [/timeline?r=regexp-compile-runtime-switch|regexp-compile-runtime-switch]: compiled <tt>regexp $switch "Looking for -nocase"</tt> now gives "wrong # args", as the command does.
      
    3. login: "serhiy.storchaka"
    4. mimetype: "text/x-fossil-wiki"