[Bash-completion-devel] Bug#623562: Bug#623562: /etc/bash_completion.d/sh: please provide simple file completion for sh

David Paleino dapal at debian.org
Thu Apr 21 10:08:13 UTC 2011


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/bash-completion-devel/attachments/20110421/48619048/attachment.pgp>


More information about the Bash-completion-devel mailing list