[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 2.0-49-gd803323

Ville Skyttä ville.skytta at iki.fi
Thu Oct 25 18:35:58 UTC 2012


The following commit has been merged in the master branch:
commit d803323974dd979a55f7f87e96e96b5bf9d9da4f
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Thu Oct 25 21:35:39 2012 +0300

    wget: Use == instead of =.

diff --git a/completions/wget b/completions/wget
index d9780d8..1fc5c95 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

-- 
bash-completion



More information about the Bash-completion-commits mailing list