Merge branch 'bash-completion-fsck-find' of https://github.com/kevinoid/util-linux

* 'bash-completion-fsck-find' of https://github.com/kevinoid/util-linux:
  bash-completion: Exclude /dev/fd from fsck find
This commit is contained in:
Karel Zak 2017-11-02 10:48:54 +01:00
commit 03b3c55233
1 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,8 @@ _fsck_module()
return 0
;;
esac
COMPREPLY=( $(compgen -W "$(find -L /dev/ -type b 2>/dev/null)" -- $cur) )
COMPREPLY=( $(compgen -W "$(find -L /dev/ -path /dev/fd -prune \
-o -type b -print 2>/dev/null)" -- $cur) )
return 0
}
complete -F _fsck_module fsck