Artifacts Associated With Ticket 1507938
Ticket change [a375bd724d] (rid 110050) by blacksqr on 2006-06-17 23:04:33:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- 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"
- foundin initialized to: "obsolete: 8.4.7"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "blacksqr"
- subsystem initialized to: "07. Variables"
- title initialized to: "array names -exact option malfunction"
- type initialized to: "Bug"
Ticket change [910c2ba42b] (rid 120564) by blacksqr on 2006-06-18 06:06:54:
- icomment:
Logged In: YES user_id=128673 Platform: Windows XP
- login: "blacksqr"
- mimetype: "text/plain"
- username: "blacksqr"
- icomment:
Ticket change [20b37863ea] (rid 130467) by msofer on 2006-06-18 06:44:04:
- 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).
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [0a6d9efe89] (rid 113815) by msofer on 2006-06-18 06:44:05:
- closedate changed to: "2006-06-17T23:44:05"
- closer changed to: "msofer"
- resolution changed to: "Invalid"
- status changed to: "Pending"
Ticket change [909dcca661] (rid 120482) by sf-robot on 2006-07-02 09:20:12:
- closedate changed to: "2006-07-02T02:20:12"
- closer changed to: "sf-robot"
- 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).
- login: "sf-robot"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "sf-robot"