[Bash-completion-devel] Bug#503691: bash-completion: does not complete files and directories as arguments

David Paleino d.paleino at gmail.com
Fri Oct 31 21:16:22 UTC 2008


On Mon, 27 Oct 2008 16:52:29 +0100, Norbert Preining wrote:

> Hi David,

Hello Norbert,

> as discussed in Palermo, here my bug report. It makes me crazy that so
> many programs taking files or directories as arguments cannot be
> completed.

Yes, I do remember our discussion!
Thanks for reminding me though!

> Example:
> 	cowbuilder --create --distribution etch --basepath /var/cache/pbu<TAB>
> does NOT complete to /var/cache/pbuilder/, although the directory is
> there.
> 
> Same with our TeX packing scripts:
> 	perl tpm2deb-source.pl make-orig-tar --master=/src/TeX/Mas<TAB>
> or
> 	perl tpm2deb-source.pl make-orig-tar --master /src/TeX/Mas<TAB>
> in both cases it never completes to /src/TeX/Master-2007.0 which is
> there.
> 
> I assume that in lack of any information, in former times bash
> completion did path name completion, but now it does nothing. That is
> not good.

Yes, right.
I've just tried with a non-existant command, and...

$ ls
wicd_1.5.4-1_all.deb  wicd_1.5.4-1.dsc           wicd_1.5.4-1_i386.upload
wicd_1.5.4-1.diff.gz  wicd_1.5.4-1_i386.changes  wicd_1.5.4.orig.tar.gz
$ foobar <TAB>
wicd_1.5.4-1_all.deb       wicd_1.5.4-1_i386.changes
wicd_1.5.4-1.diff.gz       wicd_1.5.4-1_i386.upload
wicd_1.5.4-1.dsc           wicd_1.5.4.orig.tar.gz
$ foobar wicd_1.5.4

it seems working, really.

However, with existing commands it does not work, as you reported. I'll take a
look at it, :)

Kindly,
David

-- 
 . ''`.  Debian maintainer | http://wiki.debian.org/DavidPaleino
 : :'  : Linuxer #334216 --|-- http://www.hanskalabs.net/
 `. `'`  GPG: 1392B174 ----|---- http://snipr.com/qa_page
   `-   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: 197 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/bash-completion-devel/attachments/20081031/916e65ed/attachment-0001.pgp 


More information about the Bash-completion-devel mailing list