Overview
| Artifact ID: | ae67dbf9e965ee38ff09d0f225880df01367fa65 |
|---|---|
| Ticket: | 218320ffffffffffffffffffffffffffffffffff
output of "parray" |
| User & Date: | nobody on 2000-10-26 00:56:08 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
OriginalBugID: 3824 Bug Version: 8.0.5 SubmitDate: '1999-12-08' LastModified: '1999-12-08' Severity: MED Status: Closed Submitter: techsupp ChangedBy: hobbs OS: Windows 98 OSVersion: Microsoft Windows 98 4.10.1998 Machine: Dell Machine FixedDate: '2000-10-25' ClosedDate: '1999-12-08' Name: Toru Tsuneyoshi ReproducibleScript: % set L(1) a ; set L(2) b ; set L(3) c % puts "parray L -> \n[parray L]" ObservedBehavior: L(1) = a L(2) = b L(3) = c parray L -> ### The results shown are in reverse order. DesiredBehavior: parray L -> L(1) = a L(2) = b L(3) = c Patch: *** parray.tcl.oldWed Dec 08 13:11:38 1999 --- parray.tcl.newWed Dec 08 13:37:16 1999 *************** *** 24,29 **** set maxl [expr {$maxl + [string length $a] + 2}] foreach name [lsort [array names array $pattern]] { set nameString [format %s(%s) $a $name] ! puts stdout [format "%-*s = %s" $maxl $nameString $array($name)] } } --- 24,31 ---- set maxl [expr {$maxl + [string length $a] + 2}] foreach name [lsort [array names array $pattern]] { set nameString [format %s(%s) $a $name] ! if {[info exists b]} {append b "\n"} ! append b [format "%-*s = %s" $maxl $nameString $array($name)] } + return $b } PatchFiles: No files This breaks the defined behavior of parray, which is to use puts rather than return the data. -- 12/08/1999 hobbs - foundin changed to: "final: 8.0.5"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "69. Other"
- title changed to: "output of "parray""
- type changed to: "RFE"