[Bash-completion-commits] [SCM] bash-completion branch, sudo, updated. 1.90-109-g6621f37

Igor Murzov e-mail at date.by
Tue Dec 20 16:34:04 UTC 2011


The following commit has been merged in the sudo branch:
commit 6621f37c5dc2cf59ba2c34ee038f5699418e643e
Author: Igor Murzov <e-mail at date.by>
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



More information about the Bash-completion-commits mailing list