[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: why bash completion sometimes doesn't work?



On Mon 03 Jan 2022 at 20:12:50 (+0000), Long Wind wrote:
> Thank Greg!  i use bash 5.0-4 and bash-completion 1:2.8-6
> all bash setting for root is default except 3 alias 
> 
>  alias rm='rm -i'
>  alias cp='cp -i'
>  alias mv='mv -i'
> 
> i type "ifdown wl" and press Tab, nothing happens
> there's only one wireless device in /etc/network/interfaces
> it shall complete command to "ifdown wlx12345" 
> 
> i've read /etc/skel/.bashrc, programmable completion seems enabled by default
> and it works for other commands, e.g. i type "dhclient enp" and Tab, it becomes "dhclient enp0s1"

Type:

  ifdown <TAB><TAB>

and you should get a list that will contain at least "lo".

Cancel that line and type:

  ip a

to see what interfaces you actually have.

Cheers,
David.


Reply to: