Re: [PATCH] expand: Fix scanleft/right for !FNMATCH_IS_ENABLED && quotes

Johannes Altmanninger <[email protected]> Sun, 17 Nov 2024 07:55:22 +0100
Newsgroups org.kernel.vger.dash
Message-ID <[email protected]>
On Sun, Nov 17, 2024 at 10:25:03AM +0800, Herbert Xu wrote:
> Johannes Altmanninger <[email protected]> wrote:
> > I'm hitting an easily reproducible crash.
> > It bisects to c5bf970 (expand: Add multi-byte support to pmatch, 2024-06-02).
> > 
> > After bisecting I reduced it to this example (probably not minimal)
> > 
> >        echo \\ | dash -c 'foo=$(cat; printf .); foo=${foo%.}'
> 
> Thanks for the report.  This patch should fix the problem:

thanks this works for me. I've been using master for the trap fix.