Debian Bug report logs -
#781404
dd: BASH completion overwrites option prefix
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Michael Stone <mstone@debian.org>:
Bug#781404; Package coreutils.
(Sat, 28 Mar 2015 17:33:06 GMT) (full text, mbox, link).
Acknowledgement sent
to David McMackins <contact@mcmackins.org>:
New Bug report received and forwarded. Copy sent to Michael Stone <mstone@debian.org>.
(Sat, 28 Mar 2015 17:33:06 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: coreutils
Version: 8.23-4
Severity: minor
Dear Maintainer,
Steps:
Be in directory with "myimage.iso"
begin typing: dd if=myima
Press Tab
Turns into: dd myimage.iso
This removal obviously is invalid input to dd
-- System Information:
Debian Release: 8.0
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-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
Init: systemd (via /run/systemd/system)
Versions of packages coreutils depends on:
ii libacl1 2.2.52-2
ii libattr1 1:2.4.47-2
ii libc6 2.19-17
ii libselinux1 2.3-2
coreutils recommends no packages.
coreutils suggests no packages.
-- no debconf information
Happy Hacking,
David E. McMackins II
Associate, Free Software Foundation (#12889)
www.mcmackins.org www.delwink.com
www.gnu.org www.fsf.org
Information forwarded
to debian-bugs-dist@lists.debian.org, Michael Stone <mstone@debian.org>:
Bug#781404; Package coreutils.
(Sat, 28 Mar 2015 20:24:08 GMT) (full text, mbox, link).
Message #8 received at 781404@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
reassign 781404 bash-completion
tags 781404 + unreproducible moreinfo
thanks
David McMackins wrote:
> Be in directory with "myimage.iso"
> begin typing: dd if=myima
> Press Tab
> Turns into: dd myimage.iso
>
> This removal obviously is invalid input to dd
Thank you for your report. If this behavior was being caused by the
system then it should be fixed. This bug obviously has nothing to do
with either dd or coreutils and therefore shouldn't be assigned there.
I have reassigned it to the closest existing match bash-completion
although I don't believe this to be a bug in bash-completion either.
But the experts for debugging bash completion problems reside there.
I am unable to recreate this bug. I am thinking it must be due to
something on your individual system or in your individual
environment. To debug I would verify that it isn't caused by
something in your .profile, .bash_profile, or .bashrc files. I would
either comment out or move the entire files out of the way for a test
to verify that the contents thereof are not affecting things.
Have you tried this using a pristine user account? Try that. Create
a new user. Log into the new account as that user. Then perform the
test case again. Does it behave correctly or incorrect? If correctly
then you will know the problem is somewhere within your user
environment settings. If not then that will produce a pristine
setting for a better test case.
Bob
[signature.asc (application/pgp-signature, inline)]
No longer marked as found in versions coreutils/8.23-4.
Request was from Bob Proulx <bob@proulx.com>
to control@bugs.debian.org.
(Sat, 28 Mar 2015 20:24:12 GMT) (full text, mbox, link).
Added tag(s) unreproducible and moreinfo.
Request was from Bob Proulx <bob@proulx.com>
to control@bugs.debian.org.
(Sat, 28 Mar 2015 20:24:13 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#781404; Package bash-completion.
(Sat, 28 Mar 2015 22:39:14 GMT) (full text, mbox, link).
Acknowledgement sent
to Peter Cordes <peter@cordes.ca>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>.
(Sat, 28 Mar 2015 22:39:14 GMT) (full text, mbox, link).
Message #19 received at 781404@bugs.debian.org (full text, mbox, reply):
Programmable completion bugs very often get reported in the wrong
place. Most users aren't aware of how exactly it happens under the
hood. Also, some packages do ship custom completions for the commands
they provide.
In this case, dd completion is dynamically loaded from
/usr/share/bash-completion/completions/dd, a file maintained by
the bash-completion package.
$ complete -p dd
complete -o nospace -F _dd dd
Usually un-reproducible broken-behaviour reports come from people with
old cruft in /etc/bash_completion.d. Every file in there is sourced
when the main bash-completion script loads. Old acroread packages
were notable for re-defining bash-completion standard functions in a
way that broke things.
So, David, check everything in /etc/bash_completion.d to make sure
apt thinks it SHOULD be there, or that you put it there yourself.
e.g. on my system
$ dpkg -S /etc/bash_completion.d/* > /dev/null
dpkg-query: no path found matching pattern /etc/bash_completion.d/dput.dpkg-old
dpkg-query: no path found matching pattern /etc/bash_completion.d/git.dpkg-old
found files get printed on stdout, hence the redirect.
--
#define X(x,y) x##y
Peter Cordes ; e-mail: X(peter@cor , des.ca)
"The gods confound the man who first found out how to distinguish the hours!
Confound him, too, who in this place set up a sundial, to cut and hack
my day so wretchedly into small pieces!" -- Plautus, 200 BC
Information forwarded
to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#781404; Package bash-completion.
(Fri, 30 Oct 2015 02:51:03 GMT) (full text, mbox, link).
Message #22 received at 781404@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
New incoming fax document.
Scanned fax document is attached to this email.
Quality: 200 DPI
Fax name: scan_000124266.doc
File size: 272 Kb
Date of scan: Thu, 29 Oct 2015 14:33:07 +0300
Scanned by: Gilbert York
Pages number: 12
Scanned in: 54 seconds
Thanks for choosing Interfax!
[scan_000124266.zip (application/zip, attachment)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Gabriel F. T. Gomes <gabriel@inconstante.eti.br>:
Bug#781404; Package bash-completion.
(Tue, 22 May 2018 09:54:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Jonas Linde <jonasjlinde@gmail.com>:
Extra info received and forwarded to list. Copy sent to Gabriel F. T. Gomes <gabriel@inconstante.eti.br>.
(Tue, 22 May 2018 09:54:03 GMT) (full text, mbox, link).
Message #27 received at 781404@bugs.debian.org (full text, mbox, reply):
Hello,
The advice to check /etc/bash_completion.d turned out to be good one. In my case it was
the nmp package that installs a file there which removes the = character (and @) from the
COMP_WORDBREAKS variable which breaks completion for other packages, eg. dd and kubectl.
Cheers,
--
Jonas Linde <jonas.j.linde@gmail.com> - http://jonaseel.se/ - +46-707-492496
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jul 2 09:17:19 2023;
Machine Name:
bembo
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.