The following commit has been merged in the sudo branch:
commit 6621f37c5dc2cf59ba2c34ee038f5699418e643e
Author: Igor Murzov <[email protected]>
Date:   Tue Dec 20 20:33:31 2011 +0400

    sudo: Fix option list parsing

diff --git a/completions/sudo b/completions/sudo
index 621e59f..53fa75a 100644
--- a/completions/sudo
+++ b/completions/sudo
@@ -13,11 +13,11 @@ _sudo()
             _command_offset $i
             return
         fi
-        [[ ${COMP_WORDS[i]} == -@(u|U|g|C|p) ]] && ((i++))
         if [[ ${COMP_WORDS[i]} == -e ]]; then
             mode=edit
             break
         fi
+        [[ ${COMP_WORDS[i]} == -@(u|U|g|C|p) ]] && ((i++))
     done
 
     case "$prev" in

-- 
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