diff options
Diffstat (limited to 'completions/newlist')
-rw-r--r-- | completions/newlist | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/completions/newlist b/completions/newlist index 793928c3..f1f6cf85 100644 --- a/completions/newlist +++ b/completions/newlist @@ -6,20 +6,20 @@ _newlist() _init_completion -s || return case $prev in - -l|--language|-u|--urlhost|-e|--emailhost|--help) + -l | --language | -u | --urlhost | -e | --emailhost | --help) return ;; esac $split && return - if [[ "$cur" == -* ]]; then - COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") ) - [[ $COMPREPLY == *= ]] && compopt -o nospace + if [[ $cur == -* ]]; then + COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur")) + [[ ${COMPREPLY-} == *= ]] && compopt -o nospace else _xfunc list_lists _mailman_lists fi } && -complete -F _newlist newlist + complete -F _newlist newlist # ex: filetype=sh |