[Bash-completion-devel] Bug#615134: Bug#615134: mutt: does not complete any aliases anymore
Helmut Grohne
helmut at subdivi.de
Wed Mar 2 10:40:40 UTC 2011
On Wed, Mar 02, 2011 at 09:09:20AM +0200, Ville Skyttä wrote:
> 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
You are correct here.
> __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" ]] &&
Indeed this is half of the solution. It correctly expands
source ~/somefile
while it still does not expand
source "~/somefile"
which is read by mutt as well. Looks like we have a new test case. ;-)
Helmut
PS: Yes, I could simply remove the quotes, but this regression will
probably hit others as well, so let's pursue it.
More information about the Bash-completion-devel
mailing list