[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-48-g61b91cb
Ville Skyttä
ville.skytta at iki.fi
Tue Mar 29 20:51:23 UTC 2011
The following commit has been merged in the master branch:
commit 61b91cb41b222509a5bb0b7f04b28637a7a7ded0
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Tue Mar 29 23:29:51 2011 +0300
Trivial code cleanup.
diff --git a/bash_completion b/bash_completion
index 096e82f..97da0e4 100644
--- a/bash_completion
+++ b/bash_completion
@@ -675,9 +675,8 @@ _filedir()
fi
# If the filter failed to produce anything, try without it
- if [[ -n "$1" ]] && [[ "$1" != -d ]] && [[ ${#toks[@]} -lt 1 ]] ; then
- toks=( ${toks[@]-} $( compgen -f -- $quoted) )
- fi
+ [[ -n "$1" && "$1" != -d && ${#toks[@]} -lt 1 ]] && \
+ toks=( ${toks[@]-} $( compgen -f -- $quoted ) )
[ ${#toks[@]} -ne 0 ] && _compopt_o_filenames
--
bash-completion
More information about the Bash-completion-commits
mailing list