[Bash-completion-devel] Bug#615134: Bug#615134: mutt: does not complete any aliases anymore

Ville Skyttä ville.skytta at iki.fi
Wed Mar 2 07:09:20 UTC 2011


On 03/02/2011 12:16 AM, Helmut Grohne wrote:

> 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.

I played with a test case outside of the mutt completion and think 
removing the quoting would not actually help.  But adding a 
__expand_tilde_by_ref call probably would; could you test this?

--- a/completions/mutt
+++ b/completions/mutt
@@ -63,2 +63,3 @@ _muttconffiles()
          for file in "${newconffiles[@]}"; do
+            __expand_tilde_by_ref file
              [[ ! -f "$file" || "${sofar/ ${file} / }" != "$sofar" ]] &&





More information about the Bash-completion-devel mailing list