Skip to content
Tcl Source Code History Of Ticket 1076248
Login

History Of Ticket 1076248

Artifacts Associated With Ticket 1076248

  1. Ticket change [6a05297568] (rid 128074) by nobody on 2004-11-30 20:20:23:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Tested on ActiveTcl build8.4.8 and self-built 8.4.8 on
      Red hat 9.0
      
      tclsh
      % set test_string "</Config>"
      </Config>
      % if [ regexp "^</(.*)>" $test_string jerk cfg_line ] {
      puts $cfg_line
      } elseif [ regexp "^<(.*)>" $test_string jerk cfg_line ] {
      }
      /Config
      
      
      % if [ regexp "^</(.*)>" $test_string jerk cfg_line ] {
      puts $cfg_line
      } elseif [ regexp "^<(.*)>" $test_string jerk cfg_line2 ] {
      }
      Config
      %
      
      
    4. foundin initialized to: "obsolete: 8.4.8"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "17. Commands I-L"
    10. title initialized to: "if command error"
    11. type initialized to: "Bug"
  2. Ticket change [7ebbf21ffe] (rid 97465) by hobbs on 2004-12-01 07:06:36:

    1. closedate changed to: "2004-12-01T00:06:36"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      
      Pilot error - you must {} exprs, otherwise they are eval'ed
      as expected.  In both cases, both regexps are evaled, you
      just change the var for the 2nd RE in the 2nd case.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"
    8. username: "hobbs"
  3. Ticket change [876dd82519] (rid 131694) by dkf on 2004-12-01 16:09:16:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Elaborating on what Jeff said, you probably meant to say this:
         if {[ regexp "^</(.*)>" $test_string jerk cfg_line ]} {
            puts $cfg_line
         } elseif {[ regexp "^<(.*)>" $test_string jerk cfg_line ]} {
         }
      Notice the {} round the invokations of [regexp]? It's
      important (and it also helps the code go faster as a bonus.)
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  4. Ticket change [c00002f1d4] (rid 102337) by dgp on 2004-12-01 23:41:57:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      The confusion here arises because
      Tcl was apparently buggy in releases
      8.0 through 8.3 on this point, and only
      in 8.4 did it get corrected.
      
      still looking for the relevant bug report.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [bdbb4bb137] (rid 101955) by dgp on 2004-12-01 23:56:50:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      Probably was Bug 219166.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"