You are not logged in.

#1 2022-01-08 08:51:49

cdwijs
Member
Registered: 2010-04-24
Posts: 289

bash autocomplete fails with spaces for wine, but it works with ls?

Hi all,

I would like to run a program with wine. So I type fragments of the path of the program and use the bash autocompletion by pressing the tab and space keys

This does not work, bash does not complete "Program Files":

wine ~/.wi<tab>/dr<tab>Pro<tab>\<space><tab><tab><tab>
$ wine ~/.wine/drive_c/Program\ 

When I do the same with ls instead of wine, it works as expected:

ls ~/.wi<tab>/dr<tab>Pro<tab>\<space><tab>/<tab><tab>
$ ls ~/.wine/drive_c/Program\ Files/
Common Files/         Internet Explorer/    Tribler/              Windows Media Player/ Windows NT/           

I've looked at /usr/share/bash-completion/bash_completion, but it does not mention wine:

# grep wine /usr/share/bash-completion/bash_completion
#

Is this a RTFM question? Where is the M?

Offline

#2 2022-01-08 09:28:00

seth
Member
Registered: 2012-09-03
Posts: 51,175

Re: bash autocomplete fails with spaces for wine, but it works with ls?

pacman -Qo /usr/share/bash-completion/completions/wine

And I can confirm that it can't complete multiple hits after a space.

Offline

Board footer

Powered by FluxBB