[Bash-completion-devel] mount, umount completions

Igor Murzov e-mail at date.by
Sun Dec 4 13:58:27 UTC 2011


> > But I've *guessed* something else:
> > 
> > $ umount <tab>
> > # list the entries including /home/me/private
> > $ cd /home/me
> > $ umount pri<tab>
> > # list pri* with filedir -d instead of "private" only
> 
> I've tried to fix this: http://anonscm.debian.org/gitweb/?p=bash-completion/bash-completion.git;a=commit;h=7a1a3da08a77de2952b75dc514fa962d874c5c95
> This is not a real fix, you still won't be able to do something like:
> 
>  $ umount ../mountpoint
> 
> but umount should work for current directory now. Real fix requires somewhat intrusive changes and I'm not sure I can do it without breaking something :)

Fixed in: http://anonscm.debian.org/gitweb/?p=bash-completion/bash-completion.git;a=commit;h=54bcdff3cf7e7e40f7ae0f4f20b53287653aa233
Now even crazy things work:

 $ pwd
 /home
 $ umount ../dev//disk/../sd<TAB>
 ../dev//disk/../sda1  ../dev//disk/../sda4  
 ../dev//disk/../sda3  ../dev//disk/../sdb1  
 $ umount ../dev//disk/../sd


-- Igor



More information about the Bash-completion-devel mailing list