diff --git a/bash_completion b/bash_completion index a6b707e9f58..6e11ca5b7b9 100644 --- a/bash_completion +++ b/bash_completion @@ -594,13 +594,7 @@ _comp_compgen() ;; c) _cur=$OPTARG ;; R) _cur="" ;; - C) - if [[ ! $OPTARG ]]; then - printf 'bash_completion: %s: -C: invalid directory name `%s'\''\n' "$FUNCNAME" "$OPTARG" >&2 - return 2 - fi - _dir=$OPTARG - ;; + C) _dir=$OPTARG ;; l) _has_ifs=set _ifs=$'\n' ;; F) _has_ifs=set _ifs=$OPTARG ;; [ix])