The following commit has been merged in the master branch:
commit 8fd9e1d1b972eaf4ae7bbffed0479902963d575b
Author: Ville Skyttä <[email protected]>
Date:   Mon Jan 10 20:26:22 2011 +0200

    Avoid "bad array subscript" with /usr/bin/python <TAB> (Debian: #559953).

diff --git a/completions/python b/completions/python
index d627429..9218435 100644
--- a/completions/python
+++ b/completions/python
@@ -22,7 +22,8 @@ _python()
             return 0
             ;;
         !(python?([23])|-?))
-            [[ ${COMP_WORDS[COMP_CWORD-2]} != -@(Q|W) ]] && _filedir
+            [[ $COMP_CWORD -lt 2 || ${COMP_WORDS[COMP_CWORD-2]} != -@(Q|W) ]] \
+                && _filedir
             ;;
     esac
 

-- 
bash-completion

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

Reply via email to