Skip to content
Tcl Source Code History Of Ticket 1507938
Login

History Of Ticket 1507938

Artifacts Associated With Ticket 1507938

  1. Ticket change [a375bd724d] (rid 110050) by blacksqr on 2006-06-17 23:04:33:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      The -exact option of the "array names" command
      malfunctions if there is an asterisk in the array
      element name:
      
      % array set test1 "name* value1"
      % array set test1 "name value2"
      % array get test1
      name value2 name* value1
      % array names -exact test1 name* ; # expect "name*" ,
      get empty string
      % array names test1 name\\*
      name*
      
      ------
      
      As a general principal, I would like to be able to use
      arbitrary inputs as array element names, without having
      to have to escape out glob characters to get the values
      I want; that means I wish there were a functioning
      "-exact" option for the array "get" and "unset"
      commands as well as for "names"
      
    4. foundin initialized to: "obsolete: 8.4.7"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "blacksqr"
    9. subsystem initialized to: "07. Variables"
    10. title initialized to: "array names -exact option malfunction"
    11. type initialized to: "Bug"
  2. Ticket change [910c2ba42b] (rid 120564) by blacksqr on 2006-06-18 06:06:54:

    1. icomment:
      Logged In: YES 
      user_id=128673
      
      Platform: Windows XP
      
      
    2. login: "blacksqr"
    3. mimetype: "text/plain"
    4. username: "blacksqr"
  3. Ticket change [20b37863ea] (rid 130467) by msofer on 2006-06-18 06:44:04:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      The correct syntax is
        array names arrayName ?mode? ?pattern?
      It works alright here if you do
        array names test1 -exact name*
      
      There might still a bug in there: even though the man page
      states that "If there are no (matching) elements in the
      array, or if arrayName isn't the name of an array variable,
      then an empty string is returned.", your command might be
      expected to error out with a message
        bad option "test": must be -exact, -glob, or -regexp
      Note that is looking for the names of elements of the array
      named '-exact', with an option 'test' and a pattern 'name*'.
      
      As to the feature requests: please submit them in a separate
      ticket under "Feature Requests". Or, even better, submit a
      TIP (http://wiki.tcl.tk/983).
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  4. Ticket change [0a6d9efe89] (rid 113815) by msofer on 2006-06-18 06:44:05:

    1. closedate changed to: "2006-06-17T23:44:05"
    2. closer changed to: "msofer"
    3. resolution changed to: "Invalid"
    4. status changed to: "Pending"
  5. Ticket change [909dcca661] (rid 120482) by sf-robot on 2006-07-02 09:20:12:

    1. closedate changed to: "2006-07-02T02:20:12"
    2. closer changed to: "sf-robot"
    3. icomment:
      Logged In: YES 
      user_id=1312539
      
      This Tracker item was closed automatically by the system. It was
      previously set to a Pending status, and the original submitter
      did not respond within 14 days (the time period specified by
      the administrator of this Tracker).
      
      
    4. login: "sf-robot"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "sf-robot"