Package: bash
Version: 3.0-13
Severity: minor
Tags: patch
I'm a Python developer, so I frequently run tests from the source directory I
compiled Python in:
[EMAIL PROTECTED]:trunk$ ./python
<press tab>
[EMAIL PROTECTED]:trunk$ ./python bash: COMP_WORDS: bad array subscript
My patch fixes this to do normal Python completion.
-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.10-2-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages bash depends on:
ii base-files 3.1.0ubuntu1 Debian base system miscellaneous f
ii libc6 2.3.2.ds1-20ubuntu1 GNU C Library: Shared libraries an
ii libncurses5 5.4-4 Shared libraries for terminal hand
ii passwd 1:4.0.3-30.7ubuntu2 Change and administer password and
-- no debconf information
--- bash_completion 2005-01-16 14:13:48.822092312 +0100
+++ /home/johannes/bash_completion 2005-01-16 14:03:47.543500552 +0100
@@ -4803,7 +4803,7 @@
_filedir '@(py|pyc|pyo)'
return 0
;;
- !(*python|-?))
+ !(python|-?))
[[ ${COMP_WORDS[COMP_CWORD-2]} != -@(Q|W) ]] && _filedir
;;
esac