On Wed, Mar 02, 2011 at 12:03:01AM +0200, Ville Skyttä wrote: > On 02/26/2011 01:36 AM, Helmut Grohne wrote: > >After upgrading 1:1.2-3 to 1:1.3-1 mutt aliases stopped to be complete. Now > >it > >only completes users from /etc/passwd. Thanks to etckeeper the older version > >was easily recovered. The diff to /etc/bash_completion.d/mutt consists of > >just > >three hunks of which the following hunk is the offending one: > > That change was committed in order to fix > http://alioth.debian.org/tracker/index.php?func=detail&aid=312881&group_id=100114&atid=413095 > > Can you suggest another way to fix that issue that would keep mutt > aliases working? I'm not a mutt user nor do I know much at all > about it so testing suggested changes (if any) is appreciated.
I don't really understand what's going on on the bash side here. Some experiments revealed that it actually boils down to the "-f". So my aliases file is included as: source ~/.mutt/aliases Assuming that the right part goes to $file I can see that test -f fails even though the file is present: $ test -f "~/.mutt/aliases"; echo $? 1 $ This in turn is due to the fact that the ~ is not expanded. Not quoting $file would solve this but it would probably lead to other problems. (On the other hand it is used unquoted a few lines later.) Well at least you have a test case now. :-) Helmut -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org