The following commit has been merged in the master branch:
commit c1d3cdad70523552e63688cb053a960b64e97b16
Author: Ville Skyttä <[email protected]>
Date: Sun Nov 21 20:36:09 2010 +0200
python -c takes a command, not a script.
diff --git a/completions/python b/completions/python
index 7c8fbba..d627429 100644
--- a/completions/python
+++ b/completions/python
@@ -9,7 +9,7 @@ _python()
_get_comp_words_by_ref cur prev
case $prev in
- -'?'|-h|--help|-V|--version|-m)
+ -'?'|-h|--help|-V|--version|-c|-m)
return 0
;;
-Q)
@@ -21,10 +21,6 @@ _python()
-- "$cur" ) )
return 0
;;
- -c)
- _filedir '@(py|pyc|pyo)'
- return 0
- ;;
!(python?([23])|-?))
[[ ${COMP_WORDS[COMP_CWORD-2]} != -@(Q|W) ]] && _filedir
;;
--
bash-completion
_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-commits