You are not logged in.

#1 2023-09-18 08:05:31

RezaHoss
Member
Registered: 2021-11-29
Posts: 19

Autocompletion issue in pacman

Hello
I use bash and have installed bash-completion. Bash's tab-completion works everywhere except pacman package names. When I write `sudo pacman -S teleg<tab>` does not complete telegram. Bash's version is 5.1.16.

Offline

#2 2023-09-18 08:25:06

seth
Member
Registered: 2012-09-03
Posts: 54,562

Re: Autocompletion issue in pacman

Did you test the (autocompletion) behavior w/o sudo?

You can log the bash autocompletion:

script -B /tmp/bash.script -c "bash -x"
sudo pacman -S teleg<tab> # wait until the output stops
<ctrl+c>
exit

Offline

#3 2023-09-18 08:31:44

RezaHoss
Member
Registered: 2021-11-29
Posts: 19

Re: Autocompletion issue in pacman

seth wrote:

Did you test the (autocompletion) behavior w/o sudo?

I tested just now. It works without sudo.

seth wrote:

You can log the bash autocompletion:

What should I do with this code?

Offline

#4 2023-09-18 15:21:40

seth
Member
Registered: 2012-09-03
Posts: 54,562

Re: Autocompletion issue in pacman

Look at it to see where things fall apart.
Or post it for public review.

Because of the sudo condition:

type sudo

Offline

#5 2023-09-18 15:48:47

RezaHoss
Member
Registered: 2021-11-29
Posts: 19

Re: Autocompletion issue in pacman

1 reza@rezarch ~$ type sudo
sudo is /usr/bin/sudo

Offline

Board footer

Powered by FluxBB