Skip to content
Tcl Source Code History Of Ticket 218253
Login

History Of Ticket 218253

Artifacts Associated With Ticket 218253

  1. Ticket change [bcbe4f4ecb] (rid 101805) by nobody on 2000-10-26 00:55:04:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 2860 Bug
      Version: 8.1
      SubmitDate: '1999-09-21'
      LastModified: '1999-09-28'
      Severity: MED
      Status: Closed
      Submitter: techsupp
      ChangedBy: hobbs
      OS: Solaris
      OSVersion: 2.6.1
      Machine: Other
      FixedDate: '2000-10-25'
      ClosedDate: '1999-09-28'
      
      
      Name:
      William Yan
      
      Comments:
      To keep comment systax consistent, require user put curly braces "{...}"
          around the pattern or add backslash "\" right before hashmark "#" if
          he/she do want to treat the hashmark "#" as a pattern.
      
      ReproducibleScript:
      #!/bin/sh
          #Start Tclsh  exec tclsh $0 $@
          
          switch -regexp [lindex $argv 0] {
             # branch1: get input string "a"
             a {puts "input is a"}
             b {puts "input is b"}
             default {puts "input is neither a nor b"}
          }
          
          The above is the content of executable script file. Just run it in Unix
          shell.
      
      ObservedBehavior:
      The interprete look the first line in switch body
              # branch1: get input string "a"
          as a real branch although as my intent it was comment. And the
          interprete then reports error.
      
      DesiredBehavior:
      Add comments in switch body.
      
      
      
      This sort of comment placement is user error, as specifically
      stated in the switch man page.  The man page has been further
      updated for 8.3b1 to include an example of proper comment
      placement. 
      -- 09/28/1999 hobbs
      
    4. foundin initialized to: "obsolete: 8.1"
    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: "69. Other"
    10. title initialized to: "comment sign (#) in switch body"
    11. type initialized to: "Bug"
  2. Ticket change [ea6cdb830c] (rid 103380) by welch on 2000-10-26 08:17:55:

    1. closedate changed to: "2000-10-26T01:17:55"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [ca0885736e] (rid 122392) by dgp on 2001-04-18 06:36:24:

    1. closedate changed to: "2001-04-17T23:36:24"
    2. closer changed to: "dgp"
    3. subsystem changed to: "18. Commands M-Z"