Debian Bug report logs - #482635
bash: mutt folder completion broken

version graph

Package: bash-completion; Maintainer for bash-completion is Gabriel F. T. Gomes <gabriel@debian.org>; Source for bash-completion is src:bash-completion (PTS, buildd, popcon).

Reported by: Jakob <jakob@pipefour.org>

Date: Sat, 24 May 2008 05:54:01 UTC

Severity: normal

Fixed in version bash-completion/20080617.5

Done: Luk Claes <luk@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#482635; Package bash. (full text, mbox, link).


Acknowledgement sent to Jakob <jakob@pipefour.org>:
New Bug report received and forwarded. Copy sent to Matthias Klose <doko@debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Jakob <jakob@pipefour.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: bash: mutt folder completion broken
Date: Fri, 23 May 2008 22:52:08 -0700
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




Bug reassigned from package `bash' to `bash-completion'. Request was from Luk Claes <luk@debian.org> to control@bugs.debian.org. (Sat, 24 May 2008 07:03:05 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.debian.org>:
Bug#482635; Package bash-completion. (full text, mbox, link).


Acknowledgement sent to Jakob <jakob@pipefour.org>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.debian.org>. (full text, mbox, link).


Message #12 received at 482635@bugs.debian.org (full text, mbox, reply):

From: Jakob <jakob@pipefour.org>
To: 482635@bugs.debian.org
Subject: Re: bash: mutt folder completion broken
Date: Tue, 24 Jun 2008 09:49:55 -0700
In the newest version of bash-completion in unstable (20080617.3), it's
now line 4898 that should be changed from:

  cur=`_get_cword`

to

  cur=`_get_cword =`

Thanks,
Jakob




Reply sent to Luk Claes <luk@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Jakob <jakob@pipefour.org>:
Bug acknowledged by developer. (full text, mbox, link).


Message #17 received at 482635-close@bugs.debian.org (full text, mbox, reply):

From: Luk Claes <luk@debian.org>
To: 482635-close@bugs.debian.org
Subject: Bug#482635: fixed in bash-completion 20080617.5
Date: Tue, 24 Jun 2008 18:02:02 +0000
Source: bash-completion
Source-Version: 20080617.5

We believe that the bug you reported is fixed in the latest version of
bash-completion, which is due to be installed in the Debian FTP archive:

bash-completion_20080617.5.dsc
  to pool/main/b/bash-completion/bash-completion_20080617.5.dsc
bash-completion_20080617.5.tar.gz
  to pool/main/b/bash-completion/bash-completion_20080617.5.tar.gz
bash-completion_20080617.5_all.deb
  to pool/main/b/bash-completion/bash-completion_20080617.5_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 482635@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Luk Claes <luk@debian.org> (supplier of updated bash-completion package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Tue, 24 Jun 2008 19:50:57 +0200
Source: bash-completion
Binary: bash-completion
Architecture: source all
Version: 20080617.5
Distribution: unstable
Urgency: medium
Maintainer: Bash Completion Maintainers <bash-completion-devel@lists.debian.org>
Changed-By: Luk Claes <luk@debian.org>
Description: 
 bash-completion - programmable completion for the bash shell
Closes: 482635 487774 487826 487838
Changes: 
 bash-completion (20080617.5) unstable; urgency=medium
 .
   * Revert way of setting environment variables (Closes: #487774).
   * Add equals sign to _get_cword for mutt_aliases (Closes: #482635).
   * Enhance mlayer completion (Closes: #487826, #487838).
Checksums-Sha1: 
 9ead47fa057999fc4e4f399fd5cc80216105ebd2 871 bash-completion_20080617.5.dsc
 0094ae53e89fa68eb3f6582d4c52bef5639a1004 100176 bash-completion_20080617.5.tar.gz
 fba21ce386077129df523df7a2d39f4d2af70e7c 87372 bash-completion_20080617.5_all.deb
Checksums-Sha256: 
 ca6cfec979477c99def59ed038c34d3ce58c4e6986e008ab89e15af519ae2564 871 bash-completion_20080617.5.dsc
 8fa0507c4e27e61a014fdc3efbf04fc4998d7f4cd7a513025cb93d338039ab4a 100176 bash-completion_20080617.5.tar.gz
 a99e41a497f8173974cdfaad92cb4d7b95dda387984e3e744e54a779bf012086 87372 bash-completion_20080617.5_all.deb
Files: 
 46e33330d7658161766f3929a34b6cf7 871 shells standard bash-completion_20080617.5.dsc
 cec3675f9028377832f9cc5d54842ba9 100176 shells standard bash-completion_20080617.5.tar.gz
 bcae45d2f5c549d70e873b99a1c58b74 87372 shells standard bash-completion_20080617.5_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkhhNPcACgkQ5UTeB5t8Mo1L1gCfeLmRpz3pM3yVfefhQj3zQm1t
gwcAn1GYK3JLvUmH22jM6P2oAoCpJ2qe
=eJfA
-----END PGP SIGNATURE-----





Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.debian.org>:
Bug#482635; Package bash-completion. (full text, mbox, link).


Acknowledgement sent to Jakob <jakob@pipefour.org>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.debian.org>. (full text, mbox, link).


Message #22 received at 482635@bugs.debian.org (full text, mbox, reply):

From: Jakob <jakob@pipefour.org>
To: 482635@bugs.debian.org
Subject: Re: Bug#482635 closed by Luk Claes <luk@debian.org> (Bug#482635: fixed in bash-completion 20080617.5)
Date: Tue, 24 Jun 2008 20:01:47 -0700
On Tue, Jun 24, 2008 at 06:21:05PM +0000, Debian Bug Tracking System wrote:

> * Add equals sign to _get_cword for mutt_aliases (Closes: #482635).

This was actually supposed to be added to _muttfiledir, but after the
newest release with changes to _get_cword, the mutt completion works
fine (at least for me) without this change at all, even after removing
your change to _muttaliases.

Feel free to revert it (or move it to _muttfiledir, in case _get_cword
changes again).

Thanks,
Jakob




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 29 Jul 2008 07:31:32 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 09:24:34 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.