diff --git a/bash_completion b/bash_completion index 096e82fa..97da0e4d 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