From 61b91cb41b222509a5bb0b7f04b28637a7a7ded0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Tue, 29 Mar 2011 23:29:51 +0300 Subject: Trivial code cleanup. --- bash_completion | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- cgit v1.2.1