Package: tcsh
Version: 6.17.06-2
Severity: important
Tags: upstream

I've been noticing a bug for several years now that sometimes cycling through 
recent history of commands sometimes corrupts the edit line.
I don't remember when I first noticed it, it might've been around sarge. I 
finally found a test case which garauntees a problem.

My prompt is using: set prompt = "%/> "

Say I have a program which does not output a newline at completition. Here's a 
sample program which does so:
#include <iostream>
int main()
{
  std::cout << "Hi";
  return 0;
}

I save this as /tmp/test.cpp

I then do the following:
cd /tmp
g++ -Wall -o test test.cpp
./test

Now I proceed to hit up to cycle back.
I first see: Hi/tmp> ./test
On next up I see: Hi/tmpg++ -Wall -o test test.cpp
Then: Hi/tmpcd /tmp

In this case, it ate the last two characters of the prompt.

I've seen much worse cases too where trying to edit the line (by pressing left 
and typing new characters after pressing up) has
a desync between what appears on the screen and the buffer I'm editing. Meaning 
I think I just added a new argument to launch
an application, but in reality I changed text elsewhere, as what I'm seeing is 
not what I'm editing.

If I can come up with a test case for that, I will add it.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (700, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages tcsh depends on:
ii  libc6                         2.13-23    Embedded GNU C Library: Shared lib
ii  libncurses5                   5.9-4      shared libraries for terminal hand

tcsh recommends no packages.

tcsh suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to