Artifacts Associated With Ticket 7e4d5a0a2b
Ticket change [4b6a0425c1] (rid 146758) by apnadkarni on 2016-05-20 13:10:13:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- 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 ...?"
- foundin initialized to: "8.6.5"
- is_private initialized to: "0"
- login: "apnadkarni"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "apnadkarni"
- subsystem initialized to: "47. Bytecode Compiler"
- title initialized to:
regexp behaviour differs based on passing option as literal v/s variable
- type initialized to: "Bug"
Ticket change [b54a883b5c] (rid 257562) by serhiy.storchaka on 2026-10-11 07:39:52:
- foundin changed to: "8.6.18, 9.0.5, 9.1.0"
- 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.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"