Package: bash
Version: 3.2-4
Severity: normal
Tab-completion of mutt mailboxes by using a = prefix doesn't properly
complete in the mutt-configured folder.
For instance, if a user's mutt folder is specified to be ~/mail, and
they type "mutt -f =d<tab>" in bash, the expected behavior is to
complete for files using the string "~/mail/d".
Instead, the = is chopped off because it is set as one of the
COMP_WORDBREAKS (I'm not sure where this is set), and so the completion
function sets $cur to "d", and never executes the special code block
corresponding to $cur starting with =.
The fix for this is to set $cur to `_get_cword =`, since _get_cword
accepts as arguments tokens to remove from COMP_WORDBREAKS. This
ignores =, $cur gets set to "=d", and the completion is done using the
string "~/mail/d".
Patch:
------------------------------------------------------------------------
diff --git a/bash_completion b/bash_completion
index 8520fbc..5059bcb 100644
--- a/bash_completion
+++ b/bash_completion
@@ -4873,7 +4873,7 @@ _muttquery()
_muttfiledir()
{
local cur folder spoolfile
- cur=`_get_cword`
+ cur=`_get_cword =`
# This is currently not working so well. Perhaps this function should
# just call _filedir() for the moment.
------------------------------------------------------------------------
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.24-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages bash depends on:
ii base-files 4.0.4 Debian base system miscellaneous f
ii debianutils 2.28.6 Miscellaneous utilities specific t
ii libc6 2.7-11 GNU C Library: Shared libraries
ii libncurses5 5.6+20080503-1 Shared libraries for terminal hand
Versions of packages bash recommends:
ii bash-completion 20060301-4 programmable completion for the ba
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]