[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 884307100281c3b5ff3b64130c1fbb9ec306f859
Ville Skyttä
ville.skytta at iki.fi
Mon Jan 10 18:34:15 UTC 2011
The following commit has been merged in the master branch:
commit 8fd9e1d1b972eaf4ae7bbffed0479902963d575b
Author: Ville Skyttä <ville.skytta at iki.fi>
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
More information about the Bash-completion-commits
mailing list