output of "parray"
Closed / Fixed218320ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:56:08
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
welch Closed ticket [218320ffff].
[History diff]2000-10-26 08:19:00
dgp Open ticket [218320ffff].
[History diff]2001-04-21 02:59:52
dgp Closed ticket [218320ffff].
[History diff]2001-04-21 03:00:46
Log in (anonymous is fine) to add a comment.