diff --git a/completions/wget b/completions/wget index d9780d84..1fc5c955 100644 --- a/completions/wget +++ b/completions/wget @@ -39,7 +39,7 @@ _wget() # prevopt is the previous options string used as a prefix # to avoid COMPREPLY replacing them with the $lastopt completion local lastopt=${cur/*,} prevopt= - [[ $cur = *,* ]] && prevopt=${cur%,*}, + [[ $cur == *,* ]] && prevopt=${cur%,*}, COMPREPLY=( $( compgen -P "$prevopt" -X "@($excludes_str)" \ -W 'unix windows nocontrol ascii lowercase uppercase' \ @@ -65,7 +65,7 @@ _wget() return ;; -O|--output-document|-i|--input-file) - _filedir && [[ $cur = - || -z $cur ]] && COMPREPLY+=( - ) + _filedir && [[ $cur == - || -z $cur ]] && COMPREPLY+=( - ) return ;; --secure-protocol) @@ -78,7 +78,7 @@ _wget() ;; --follow-tags|--ignore-tags) local lastopt=${cur/*,} prevopt= - [[ $cur = *,* ]] && prevopt=${cur%,*}, + [[ $cur == *,* ]] && prevopt=${cur%,*}, COMPREPLY=( $( compgen -P "$prevopt" -W 'a abbr acronym address applet area b base basefont bdo big blockquote body br button @@ -154,7 +154,7 @@ _wget() $split && return - if [[ $cur = -* ]]; then + if [[ $cur == -* ]]; then COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) ) [[ $COMPREPLY == *= ]] && compopt -o nospace fi