Skip to content
Tcl Source Code History Of Ticket 1367506fffffffff
Login

History Of Ticket 1367506fffffffff

Artifacts Associated With Ticket 1367506fffffffff

  1. Ticket change [d9531362af] (rid 107592) by sbron on 2005-11-27 13:08:33:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Doing: [scan 0.99 %d.%d.%d.%d a b c d] returns 2 and
      only variables a and b are set. Variable c and d are
      not being touched. If these variables did not exist
      before, they still don't exist after the operation.
      Otherwise they will still have their old value.
      
      According to the manual page: "If no varName variables
      are specified, then scan works in an inline manner,
      returning the data that would otherwise be stored in
      the variables as a list".
      
      From this information I expect [scan 0.99 %d.%d.%d.%d]
      to return a list with two elements. However, the
      command returns a list with four elements: 0 99 {} {}
      
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "sbron"
    9. subsystem initialized to: "23. [scan]"
    10. title initialized to: "Inline scan returns too many items"
    11. type initialized to: "Bug"
  2. Ticket change [842e9f06b9] (rid 117498) by sbron on 2005-11-27 20:25:08:

    1. foundin changed to: "obsolete: 8.4.11"
  3. Add attachment "scan.patch" [126923a217] (rid 95301) by sbron on 2005-11-27 20:25:09.

  4. Ticket change [72d39094b9] (rid 104929) by sbron on 2005-11-27 20:25:10:

    1. icomment:
      
      
      File Added - 157677: scan.patch
      
      
      
    2. login: "sbron"
    3. mimetype: "text/plain"
    4. username: "sbron"
  5. Ticket change [5e3990057a] (rid 115599) by hobbs on 2005-11-29 07:03:48:

    1. resolution changed to: "Invalid"
    2. status changed to: "Pending"
  6. Ticket change [65a36d2b58] (rid 102585) by hobbs on 2005-11-29 07:03:49:

    1. closedate changed to: "2005-11-29T00:03:49"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      
      Note that the next sentence is "In the inline case, an empty
      string is returned when the end of the input string is
      reached before any conversions have been performed.", and
      perhaps that needs augmenting to say that each %-sub that
      goes unmatched also makes an empty string.  Inline scan does
      intentionally operate to return a list equal in length to
      the number of %-subs.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. username: "hobbs"
  7. Ticket change [3d6ab63d0d] (rid 121083) by sbron on 2005-12-02 23:32:14:

    1. icomment:
      Logged In: YES 
      user_id=37987
      
      That next line refers to the fact that [scan "" %d.%d.%d.%d]
      returns an empty string and not a list of four empty
      strings. That is actually consistent with the expected
      result I described.
      
      The only situation that is inconsistent is a partial match.
      I have seen the code and noticed that it intentionally adds
      empty list entries. But that doesn't automatically make it
      the right thing to do.
      
      I do realize that this is unlikely to be changed because
      that might break existing code that accounts for the current
      behavior. So probably the only thing that can be done now is
      to warn people about this illogical behavior in the manual page.
      
      
      
    2. login: "sbron"
    3. mimetype: "text/plain"
    4. status changed to: "Open"
    5. username: "sbron"