diff options
author | Ville Skyttä | 2013-04-07 10:12:05 +0200 |
---|---|---|
committer | Karel Zak | 2013-04-08 17:06:53 +0200 |
commit | d6b975ef4492543fb1d31709906193b3ae01d574 (patch) | |
tree | 26804bb5a3adca0a6ab4618d5f2542df0573c67e /bash-completion/findmnt | |
parent | bash-completion: Don't offer any more completions after help or version. (diff) | |
download | kernel-qcow2-util-linux-d6b975ef4492543fb1d31709906193b3ae01d574.tar.gz kernel-qcow2-util-linux-d6b975ef4492543fb1d31709906193b3ae01d574.tar.xz kernel-qcow2-util-linux-d6b975ef4492543fb1d31709906193b3ae01d574.zip |
bash-completion: Avoid some unnecessary subshells.
Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
Diffstat (limited to 'bash-completion/findmnt')
-rw-r--r-- | bash-completion/findmnt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash-completion/findmnt b/bash-completion/findmnt index cdc4861c2..a6d526f71 100644 --- a/bash-completion/findmnt +++ b/bash-completion/findmnt @@ -38,7 +38,7 @@ _findmnt_module() MNT_OPTS[$I]='1' done done < <(findmnt -rno OPTIONS) - COMPREPLY=( $(compgen -W "$(echo ${!MNT_OPTS[@]})" -- $cur) ) + COMPREPLY=( $(compgen -W "${!MNT_OPTS[@]}" -- $cur) ) return 0 ;; '-o'|'--output') |