Debian Bug report logs - #529590
mc: changing directories floods history with cd "`printf "%b" ...

version graph

Package: mc; Maintainer for mc is Debian MC Packaging Group <pkg-mc-devel@lists.alioth.debian.org>; Source for mc is src:mc (PTS, buildd, popcon).

Reported by: Bernhard Kuemel <bernhard@bksys.at>

Date: Wed, 20 May 2009 10:51:02 UTC

Severity: normal

Tags: moreinfo

Found in version mc/2:4.6.2-2

Done: Patrick Winnertz <winnie@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian MC Packaging Group <pkg-mc-devel@lists.alioth.debian.org>:
Bug#529590; Package mc. (Wed, 20 May 2009 10:51:04 GMT) (full text, mbox, link).


Acknowledgement sent to Bernhard Kuemel <bernhard@bksys.at>:
New Bug report received and forwarded. Copy sent to Debian MC Packaging Group <pkg-mc-devel@lists.alioth.debian.org>. (Wed, 20 May 2009 10:51:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Bernhard Kuemel <bernhard@bksys.at>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: mc: changing directories floods history with cd "`printf "%b" ...
Date: Wed, 20 May 2009 12:17:50 +0200
Package: mc
Version: 2:4.6.2-2
Severity: normal


Changing directories with arrow keys floods the command history with 

cd "`printf "%b" '\0057home\0057bernhard\0057t'`"

and the like. This is annoying when looking for previous commands. 

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

Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages mc depends on:
ii  libc6                         2.9-4      GNU C Library: Shared libraries
ii  libglib2.0-0                  2.20.0-2   The GLib library of C routines
ii  libgpm2                       1.20.4-3.2 General Purpose Mouse - shared lib
ii  libslang2                     2.1.3-3    The S-Lang programming library - r

mc recommends no packages.

Versions of packages mc suggests:
ii  arj                          3.10.22-6   archiver for .arj files
ii  bzip2                        1.0.5-1     high-quality block-sorting file co
pn  dbview                       <none>      (no description available)
ii  file                         5.03-1      Determines file type using "magic"
ii  lynx                         2.8.7pre1-1 Text-mode WWW Browser (transitiona
ii  mime-support                 3.44-1      MIME files 'mime.types' & 'mailcap
pn  odt2txt                      <none>      (no description available)
ii  perl                         5.10.0-22   Larry Wall's Practical Extraction 
ii  unzip                        6.0-1       De-archiver for .zip files
pn  xpdf                         <none>      (no description available)
ii  zip                          3.0-1       Archiver for .zip files

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Debian MC Packaging Group <pkg-mc-devel@lists.alioth.debian.org>:
Bug#529590; Package mc. (Fri, 22 May 2009 12:00:05 GMT) (full text, mbox, link).


Acknowledgement sent to Denis Briand <denis@narcan.fr>:
Extra info received and forwarded to list. Copy sent to Debian MC Packaging Group <pkg-mc-devel@lists.alioth.debian.org>. (Fri, 22 May 2009 12:00:06 GMT) (full text, mbox, link).


Message #10 received at 529590@bugs.debian.org (full text, mbox, reply):

From: Denis Briand <denis@narcan.fr>
To: 529590@bugs.debian.org, 529590-submitter@bugs.debian.org, control@bugs.debian.org
Subject: mc: changing directories floods history with cd "`printf "%b"
Date: Fri, 22 May 2009 13:59:08 +0200
[Message part 1 (text/plain, inline)]
tags 529590 moreinfo
stop 

Hello Bernhard,
Thank you for your bug report.
I'm not sure to understand your issue.
To help us, can you give us step by step how 
to reproduce it please?

best regards

Denis Briand
[signature.asc (application/pgp-signature, inline)]

Tags added: moreinfo Request was from Denis Briand <denis@narcan.fr> to control@bugs.debian.org. (Fri, 22 May 2009 12:00:07 GMT) (full text, mbox, link).


Message sent on to Bernhard Kuemel <bernhard@bksys.at>:
Bug#529590. (Fri, 22 May 2009 12:00:11 GMT) (full text, mbox, link).


Reply sent to Patrick Winnertz <winnie@debian.org>:
You have taken responsibility. (Fri, 22 May 2009 14:39:18 GMT) (full text, mbox, link).


Notification sent to Bernhard Kuemel <bernhard@bksys.at>:
Bug acknowledged by developer. (Fri, 22 May 2009 14:39:19 GMT) (full text, mbox, link).


Message #20 received at 529590-done@bugs.debian.org (full text, mbox, reply):

From: Patrick Winnertz <winnie@debian.org>
To: 529590-done@bugs.debian.org
Subject: dup
Date: Fri, 22 May 2009 16:34:23 +0200
This is a dup of another bug which was fixed a long time ago.

Here a citate of README.Debian (please read it before filling bugs):
-------------------
 -  In order to get rid of the commandline history to be full with cd commands
    from the both boxes set this environment variable:
     export HISTCONTROL=ignoreboth

    This is a issue of bash, not of mc. This would fix it.
-------------------
Please add this environment variable to fix this. 


Greetings
Winnie




Information forwarded to debian-bugs-dist@lists.debian.org, Debian MC Packaging Group <pkg-mc-devel@lists.alioth.debian.org>:
Bug#529590; Package mc. (Fri, 22 May 2009 15:00:05 GMT) (full text, mbox, link).


Acknowledgement sent to Bernhard Kuemel <bernhard@bksys.at>:
Extra info received and forwarded to list. Copy sent to Debian MC Packaging Group <pkg-mc-devel@lists.alioth.debian.org>. (Fri, 22 May 2009 15:00:05 GMT) (full text, mbox, link).


Message #25 received at 529590@bugs.debian.org (full text, mbox, reply):

From: Bernhard Kuemel <bernhard@bksys.at>
To: 529590@bugs.debian.org
Subject: Re: Bug#529590: mc: changing directories floods history with cd "`printf "%b"
Date: Fri, 22 May 2009 16:57:16 +0200

Denis Briand wrote:
> tags 529590 moreinfo
> stop 
> 
> Hello Bernhard,
> Thank you for your bug report.
> I'm not sure to understand your issue.
> To help us, can you give us step by step how 
> to reproduce it please?

Ok, try this:

# useradd -m test
# passwd test
[set a password]
[change login shell for test in /etc/passwd to /bin/bash]
[login as test (I used the text console to exclude interference from
terminal emulation windows)]
test@be:/home$ rm * .*
test@be:/home$ echo >.bashrc export HISTCONTROL=ignoredups
test@be:/home$ mc
test@be:/home$ ls
[hit enter on ..]
^o
<arrow up>
[Now I see:]
test@be:/home$  cd "`printf "%b" '\0057home'`"
[note the leading space.]
<arrow up>
[shows]
test@be:/home$ ls

Patrick, I just received your mail. Thanks.

I'll still send this email showing how to reproduce this bug which took
me some hours. It did turn out to be bash related, yes.

Bernhard





Information stored :
Bug#529590; Package mc. (Fri, 22 May 2009 15:00:06 GMT) (full text, mbox, link).


Acknowledgement sent to Bernhard Kuemel <bernhard@bksys.at>:
Extra info received and filed, but not forwarded. (Fri, 22 May 2009 15:00:06 GMT) (full text, mbox, link).


Message #30 received at 529590-quiet@bugs.debian.org (full text, mbox, reply):

From: Bernhard Kuemel <bernhard@bksys.at>
To: Denis Briand <denis@narcan.fr>, 529590-quiet@bugs.debian.org
Subject: Re: Bug#529590: mc: changing directories floods history with cd "`printf "%b"
Date: Fri, 22 May 2009 16:56:35 +0200

Denis Briand wrote:
> tags 529590 moreinfo
> stop 
> 
> Hello Bernhard,
> Thank you for your bug report.
> I'm not sure to understand your issue.
> To help us, can you give us step by step how 
> to reproduce it please?

Ok, try this:

# useradd -m test
# passwd test
[set a password]
[change login shell for test in /etc/passwd to /bin/bash]
[login as test (I used the text console to exclude interference from
terminal emulation windows)]
test@be:/home$ rm * .*
test@be:/home$ echo >.bashrc export HISTCONTROL=ignoredups
test@be:/home$ mc
test@be:/home$ ls
[hit enter on ..]
^o
<arrow up>
[Now I see:]
test@be:/home$  cd "`printf "%b" '\0057home'`"
[note the leading space.]
<arrow up>
[shows]
test@be:/home$ ls

Patrick, I just received your mail. Thanks.

I'll still send this email showing how to reproduce this bug which took
me some hours. It did turn out to be bash related, yes.

Bernhard




Information forwarded to debian-bugs-dist@lists.debian.org, Debian MC Packaging Group <pkg-mc-devel@lists.alioth.debian.org>:
Bug#529590; Package mc. (Sun, 31 May 2009 20:00:03 GMT) (full text, mbox, link).


Acknowledgement sent to Lubos Kopecky <lkopecky@fa-mi.org>:
Extra info received and forwarded to list. Copy sent to Debian MC Packaging Group <pkg-mc-devel@lists.alioth.debian.org>. (Sun, 31 May 2009 20:00:03 GMT) (full text, mbox, link).


Message #35 received at 529590@bugs.debian.org (full text, mbox, reply):

From: Lubos Kopecky <lkopecky@fa-mi.org>
To: 529590@bugs.debian.org
Subject: Re: Bug#529590: mc: changing directories floods history with cd "`printf, "%b"
Date: Sun, 31 May 2009 21:56:21 +0200
[Message part 1 (text/plain, inline)]
Hi,

I had the same problem and found a solution - just add this one line to
your .bashrc and it starts to work correctly:

export HISTCONTROL=ignoreboth

At the least it works for me and I tried it on more systems based on Debian.

-- 
Lubos
[lkopecky.vcf (text/x-vcard, attachment)]

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 29 Jun 2009 07:32:26 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Jan 13 20:05:51 2018; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.