[Bash-completion-devel] Bug#545743: Bug#545743: bash-completion: sbcl completion and file/directory-name argument

Ville Skyttä ville.skytta at iki.fi
Tue Sep 8 21:43:54 UTC 2009


On Tuesday 08 September 2009, Christophe Rhodes wrote:

> A common operation for me is to type
>   ./sr<tab>ru<tab>sb<tab> --core ou<tab>sb<tab>
> expecting that to complete to
>   ./src/runtime/sbcl --core output/sbcl.core
>
> Unfortunately, the <tab> after "ou" in that command line doesn't perform
> a partial complete to "output/", but (apparently) a full complete to
> "output ", meaning that I end up with a command-line of
>
>   ./src/runtime/sbcl --core output sbcl-pwd.sh

I know nothing about sbcl, but could you try modifying 
/etc/bash_completion.d/sbcl, replacing

    complete -F _sbcl $default sbcl sbcl-mt

with:

    complete -F _sbcl $filenames sbcl sbcl-mt

and report back whether this fixes it for you.





More information about the Bash-completion-devel mailing list