fstrim takes mountpoint as argument but the bash completion was completing it to a device node.
Addresses: http://bugs.debian.org/804833 Reported-by: Ritesh Raj Sarraf <r...@debian.org> Signed-off-by: Andreas Henriksson <andr...@fatal.se> --- bash-completion/fstrim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash-completion/fstrim b/bash-completion/fstrim index 7d3cde9..726ddd9 100644 --- a/bash-completion/fstrim +++ b/bash-completion/fstrim @@ -27,7 +27,7 @@ _fstrim_module() ;; esac local MPOINTS - MPOINTS=$(findmnt -rno SOURCE | grep ^/dev) + MPOINTS=$(findmnt -rno SOURCE,TARGET | awk '/^\/dev/{print $2}') COMPREPLY=( $(compgen -W "$MPOINTS" -- $cur) ) return 0 } -- 2.1.4