diff options
Diffstat (limited to 'bash/bash_completion.d/mysql.bash')
-rw-r--r-- | bash/bash_completion.d/mysql.bash | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/bash/bash_completion.d/mysql.bash b/bash/bash_completion.d/mysql.bash index d88219bf..413f3386 100644 --- a/bash/bash_completion.d/mysql.bash +++ b/bash/bash_completion.d/mysql.bash @@ -35,14 +35,8 @@ _mysql() { cnfs=("${cnfs[@]#"$dirname"/}") cnfs=("${cnfs[@]%.cnf}") - # Print quoted entries, null-delimited, if there was at least one; - # otherwise, just print a null character to stop this hanging in Bash - # 4.4 - if ((${#cnfs[@]})) ; then - printf '%q\0' "${cnfs[@]}" - else - printf '\0' - fi + # Print quoted entries, null-delimited + printf '%q\0' "${cnfs[@]}" ) } complete -F _mysql -o bashdefault -o default mysql |