Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4b6a0425c1d1ad98c39dcc1d3310f79cea4f06ea
Ticket: 7e4d5a0a2b439cd36db77d3a5d6a09cb5c4f8d7c
regexp behaviour differs based on passing option as literal v/s variable
User & Date: apnadkarni on 2016-05-20 13:10:13
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed 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 changed to: "8.6.5"
  6. is_private changed to: "0"
  7. login: "apnadkarni"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "apnadkarni"
  13. subsystem changed to: "47. Bytecode Compiler"
  14. title changed to:
    regexp behaviour differs based on passing option as literal v/s variable
    
  15. type changed to: "Bug"