Debian Bug report logs -
#623562
please provide generic file completion for $command
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#623562; Package bash-completion.
(Thu, 21 Apr 2011 09:09:13 GMT) (full text, mbox, link).
Acknowledgement sent
to Uwe Kleine-König <u.kleine-koenig@pengutronix.de>:
New Bug report received and forwarded. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>.
(Thu, 21 Apr 2011 09:09:16 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: bash-completion
Version: 1:1.3-1
Severity: normal
File: /etc/bash_completion.d/sh
Hello,
some time ago our system admin updated our development server and since
then one of my workflows became harder. It's like the following:
do that once:
$ echo "very complicated build command" > refresh
$ echo "yet another command" >> refresh
and then I just call
sh refresh
to get things going.
With the current bash completion
sh ref<tab>
doesn't complete ref to refresh though the match is unique.
For now I'm adding
complete -r sh
in my .bashrc which makes the completion work for me again.
Best regards
Uwe
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages bash-completion depends on:
ii bash 4.1-3 The GNU Bourne Again SHell
bash-completion recommends no packages.
bash-completion suggests no packages.
-- no debconf information
Information forwarded
to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#623562; Package bash-completion.
(Thu, 21 Apr 2011 10:12:03 GMT) (full text, mbox, link).
Acknowledgement sent
to dapal@debian.org:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>.
(Thu, 21 Apr 2011 10:12:06 GMT) (full text, mbox, link).
Message #10 received at 623562@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
tags 623562 wontfix upstream
retitle 623562 please provide generic file completion for $command
thanks
On Thu, 21 Apr 2011 11:08:26 +0200, Uwe Kleine-König wrote:
> [..]
> With the current bash completion
>
> sh ref<tab>
>
> doesn't complete ref to refresh though the match is unique.
> For now I'm adding
>
> complete -r sh
>
> in my .bashrc which makes the completion work for me again.
"sh" is completing on .sh files. So just call your script "refresh.sh".
With my upstream hat on, I'm tagging this as wontfix.
Almost no unix command takes care of file extensions, but only of their
contents. If I accepted your bug, I could just complete on filenames for any
command -- and there would be no need of bash-completion (apart from
non-filename-completions), because plain bash already does this ;)
Kindly,
David
--
. ''`. Debian developer | http://wiki.debian.org/DavidPaleino
: :' : Linuxer #334216 --|-- http://www.hanskalabs.net/
`. `'` GPG: 1392B174 ----|---- http://deb.li/dapal
`- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
[signature.asc (application/pgp-signature, attachment)]
Added tag(s) upstream and wontfix.
Request was from David Paleino <dapal@debian.org>
to control@bugs.debian.org.
(Thu, 21 Apr 2011 10:12:13 GMT) (full text, mbox, link).
Changed Bug title to 'please provide generic file completion for $command' from '/etc/bash_completion.d/sh: please provide simple file completion for sh'
Request was from David Paleino <dapal@debian.org>
to control@bugs.debian.org.
(Thu, 21 Apr 2011 10:12:14 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#623562; Package bash-completion.
(Thu, 21 Apr 2011 10:24:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Guillaume Rousse <guillomovitch@gmail.com>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>.
(Thu, 21 Apr 2011 10:24:11 GMT) (full text, mbox, link).
Message #19 received at 623562@bugs.debian.org (full text, mbox, reply):
Le 21/04/2011 11:08, Uwe Kleine-König a écrit :
> With the current bash completion
>
> sh ref<tab>
>
> doesn't complete ref to refresh though the match is unique.
> For now I'm adding
>
> complete -r sh
>
> in my .bashrc which makes the completion work for me again.
Note you can always force raw filename completion, using alt + /,
bypassing any programmable completion. The same is true for all other
builtin completions types, as described in READLINE section of bash(1).
possible-filename-completions (C-x /)
List the possible completions of the text before
point, treating it as a filename.
--
BOFH excuse #194:
We only support a 1200 bps connection.
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jul 2 10:10:31 2023;
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.