On Tue, May 19, 2026 at 07:49:47PM +0800, Kevin J. McCarthy wrote:
> On Tue, May 19, 2026 at 12:15:20PM +0200, Alejandro Colomar via Mutt-dev
> wrote:
> > On 2026-05-19T13:56:45+0800, Kevin J. McCarthy wrote:
> > > To see the change in mutt, start up mutt and
> > > - :unset folder<enter>
> > > - <change-folder>
> > > - At the prompt: Open mailbox ('?' for list):
> > > =usr/
> > > then hit Tab twice.
> > >
> > > Before this commit mutt will try to expand "usr" in your cwd.
> > > After this commit mutt will try to expand "/usr".
> >
> > Doesn't = mean it's a relative path? Is it correct to interpret it as
> > /usr? I'm not very familiar with how these paths work, so I might be
> > completely wrong.
>
> Hi Alex,
>
> = is a mailbox shortcut for the $folder directory. See the list of
> different shortcuts at http://www.mutt.org/doc/manual/#shortcuts
>
> So, to be clear, this example doesn't make much sense. They would be
> expanding a mailbox shortcut for a shortcut that is unset.
So we could argue it's Undefined Behaviour. ;-)
I think this change is warranted.