Bug#594154: tcsh: Regression -- double history storage of commands when !#:q is used in jobcmd

2010-08-26 Thread Lucas Nussbaum
forwarded 594154 http://bugs.gw.com/view.php?id=106
thanks



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#594154: tcsh: Regression -- double history storage of commands when !#:q is used in jobcmd

2010-08-25 Thread gi1242+debianbugs
On Tue, Aug 24, 2010 at 09:13:31PM +0200, Lucas Nussbaum wrote:

 The issue does not arise if you don't use the :q modifier. This bug
 was not present in 6.17.02-3 and is present in 6.17.02-2.
 
 Huh? I guess you mistyped one of the new versions. Could you check?
 
 Yes, I swapped them apologies. (I sent a correction email, but it got
 rejected by the BTS as there was no number assigned yet).
 
 The bug is present in 6.17.02-3. The bug is not present in 6.17.02-2.
 
 That's rather strange. The only difference between the two versions is
 the re-addition of an unrelated patch. Could you maybe recheck using
 the binary packages on
 http://snapshot.debian.org/package/tcsh/ ?

Indeed. On rechecking, the bug is also present in 6.17.02-x.

The bug is however *absent* in 6.17.00-3. Check what you get on your
system with the following:

tcsh: tcsh -f
 alias jobcmd echo -n '\e]0;\!#:q ($cwd)\a'
 /bin/echo hello world
 history

On 6.17.00-3 the output of the last command is

 1  21:12   alias jobcmd echo -n '\e]0;\!#:q ($cwd)\a'
 2  21:12   /bin/echo hello world
 3  21:12   history

On 6.17.02-3 the output of the last command is

 1  21:17   alias jobcmd echo -n '\e]0;\!#:q ($cwd)\a'
 2  21:17   /bin/echo hello world
-5000   21:17   /bin/echo hello
 3  21:17   history

The history event with number -5000 is a bug.

Thanks,

GI

-- 
Actually officer, if you factor in the earth's rotation, we were all
speeding.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#594154: tcsh: Regression -- double history storage of commands when !#:q is used in jobcmd

2010-08-24 Thread gi1242+debianbugs
On Tue, Aug 24, 2010 at 07:25:54AM +0200, Lucas Nussbaum wrote:

 The issue does not arise if you don't use the :q modifier. This bug
 was not present in 6.17.02-3 and is present in 6.17.02-2.
 
 Huh? I guess you mistyped one of the new versions. Could you check?

Yes, I swapped them apologies. (I sent a correction email, but it got
rejected by the BTS as there was no number assigned yet).

The bug is present in 6.17.02-3. The bug is not present in 6.17.02-2.

Thanks,

Gautam

-- 
'Common' Proof Techniques:
18. Proof by importance -- A large body of useful consequences all
follow from the proposition in question.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#594154: tcsh: Regression -- double history storage of commands when !#:q is used in jobcmd

2010-08-24 Thread Lucas Nussbaum
On 24/08/10 at 11:25 -0400, gi1242+debianb...@gmail.com wrote:
 On Tue, Aug 24, 2010 at 07:25:54AM +0200, Lucas Nussbaum wrote:
 
  The issue does not arise if you don't use the :q modifier. This bug
  was not present in 6.17.02-3 and is present in 6.17.02-2.
  
  Huh? I guess you mistyped one of the new versions. Could you check?
 
 Yes, I swapped them apologies. (I sent a correction email, but it got
 rejected by the BTS as there was no number assigned yet).
 
 The bug is present in 6.17.02-3. The bug is not present in 6.17.02-2.

That's rather strange. The only difference between the two versions is
the re-addition of an unrelated patch.
Could you maybe recheck using the binary packages on
http://snapshot.debian.org/package/tcsh/ ?

- Lucas



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#594154: tcsh: Regression -- double history storage of commands when !#:q is used in jobcmd

2010-08-23 Thread gi1242+debianbugs
Package: tcsh
Version: 6.17.02-3
Severity: normal

If the alias jobcmd contains !#:q, then all your typed commands are
stored twice in the history. Once as typed, and once with only the first
argument (and aliases expanded).

The issue does not arise if you don't use the :q modifier. This bug
was not present in 6.17.02-3 and is present in 6.17.02-2.

Here's how you can reproduce this:

1. Set jobcmd to use !#:q in some way. E.g.:

alias jobcmd echo -n '\e]0;\!#:q\a'

2. Run any command. E.g.

/bin/echo a b

3. See the bottom of your history.

583  0:31/bin/echo a b
   -5000   0:31/bin/echo a
584  0:31history | tail

4. Alternately go up in the history (using the up key). You'll first
   see a command /bin/echo a (which you never typed). Pressing the
   up key again, you'll get the command /bin/echo a b which you
   typed.



-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages tcsh depends on:
ii  libc6 2.11.2-2   Embedded GNU C Library: Shared lib
ii  libncurses5   5.7+20100313-2 shared libraries for terminal hand

tcsh recommends no packages.

tcsh suggests no packages.

-- no debconf information

-- 
A Windows user spends 1/3 of his life sleeping, 1/3 working, 1/3
waiting.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#594154: tcsh: Regression -- double history storage of commands when !#:q is used in jobcmd

2010-08-23 Thread Lucas Nussbaum
On 20/08/10 at 00:39 -0400, gi1242+debianb...@gmail.com wrote:
 Package: tcsh
 Version: 6.17.02-3
 Severity: normal
 
 If the alias jobcmd contains !#:q, then all your typed commands are
 stored twice in the history. Once as typed, and once with only the first
 argument (and aliases expanded).
 
 The issue does not arise if you don't use the :q modifier. This bug
 was not present in 6.17.02-3 and is present in 6.17.02-2.

Huh? I guess you mistyped one of the new versions. Could you check?

- Lucas



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org