tcsh holds wrong history for nested loops.

Bug #551585 reported by rew
10
This bug affects 2 people
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://nl.archive.ubuntu.com/ubuntu/ lucid/universe Packages
        100 /var/lib/dpkg/status

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.

Revision history for this message
Lucas Nussbaum (lucas) wrote :

Thanks for the report. Forwarded upstream as http://bugs.gw.com/view.php?id=99

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in tcsh (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.