tcsh holds wrong history for nested loops.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tcsh (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: tcsh
In the most recent 10.4 release, tcsh now remembers the lines entered inside loops: Good. :-)
foreach i (*)
something complicated
end
you can recall the "something complicated" by using up-arrow.
However this goes wrong in nested loops:
foreach i (*)
foreach j (1 2 3)
something complicated
end
end
will put the "something complicated" (and the following "end") into the history buffer many times.....
tcsh-version 6.17.00-3
Description: Ubuntu lucid (development branch)
Release: 10.04
tcsh:
Installed: 6.17.00-3
Candidate: 6.17.00-3
Version table:
*** 6.17.00-3 0
500 http://
100 /var/lib/
kernel Linux version 2.6.32-16-generic (buildd@yellow) (gcc version 4.4.3 (Ubuntu 4.4.3-3ubuntu1) ) #25-Ubuntu SMP Tue Mar 9 16:33:12 UTC 2010
Arch: AMD64.
Thanks for the report. Forwarded upstream as http:// bugs.gw. com/view. php?id= 99