The following commit has been merged in the master branch:
commit e4fe946621d824fe04f5c8a8f4f774342b53df40
Author: Ville Skyttä <[email protected]>
Date:   Sat Feb 18 10:12:02 2012 +0200

    su: Fix long option handling.

diff --git a/completions/su b/completions/su
index df91230..2c6254d 100644
--- a/completions/su
+++ b/completions/su
@@ -7,8 +7,8 @@ fi
 
 _su() # linux-specific completion
 {
-    local cur prev words cword
-    _init_completion || return
+    local cur prev words cword split
+    _init_completion -s || return
 
     case "$prev" in
         -s|--shell)
@@ -23,6 +23,8 @@ _su() # linux-specific completion
             ;;
     esac
 
+    $split && return
+
     if [[ "$cur" == -* ]]; then
         COMPREPLY=( $( compgen -W '$( _parse_help "$1" --help )' -- "$cur" ) )
         [[ $COMPREPLY == *= ]] && compopt -o nospace

-- 
bash-completion

_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-commits

Reply via email to