Re: mutt/2362: my_foo and environment not interpreted correctly with mailboxes and ignore and probably other commands
The following reply was made to PR mutt/2362; it has been noted by GNATS.
From: Michael Tatge <Michael.Tatge@xxxxxx>
To: Mutt Dev List <mutt-dev@xxxxxxxx>
Cc: bug-any@xxxxxxxxxxxxx
Subject: Re: mutt/2362: my_foo and environment not interpreted correctly with
mailboxes and ignore and probably other commands
Date: Sun, 16 Jul 2006 17:19:33 +0200
* On Sun, Jul 16, 2006 Rocco Rutte wrote:
> In the attached patch, I moved the "push result back" code out to a new
> function I also used to push the result of environment vars back.
That patch works fine for the problem at hand. It breaks if you don't
quote my_vars that contain spaces if you want them to be considered as
one token. That's consistent with mutt's other quoting needs though and
fine with me.
set my_spell="/usr/bin/aspell -c --mode=email --lang=en_GB"
ispell="$my_ispell"
> Now this seems to work but needs much more testing and hacking to
> resolve infinite loops:
>
> $ export FOO='$FOO'
> $ ./mutt -e 'mailboxes $FOO'
This is clearly a user error IMO. Should mutt try to detect it? I'm not
sure.
Thanks for the patch, seems to work well.
Michael
--
MOUNT TAPE U1439 ON B3, NO RING
PGP-Key-ID: 0xDC1A44DD
Jabber: init[0]@amessage.de