Hallo Andreas,

On Tue, 14 May 2024 14:50:34 +0200, Andreas Grünbacher wrote:
> Am Di., 14. Mai 2024 um 12:54 Uhr schrieb Andreas Schwab <[email protected]>:
> >
> > ---
> >  quilt/scripts/patchfns.in | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/quilt/scripts/patchfns.in b/quilt/scripts/patchfns.in
> > index aefb279..937e804 100644
> > --- a/quilt/scripts/patchfns.in
> > +++ b/quilt/scripts/patchfns.in
> > @@ -1073,7 +1073,7 @@ patch_format()
> >  {
> >         local prefix=${QUILT_PATCHES_PREFIX:+$SUBDIR_DOWN$QUILT_PATCHES/}
> >
> > -       echo -n "${prefix/\%/%%}%s"
> > +       echo -n "${prefix//%/%%}%s"  
> 
> Thanks, that's better, but since that's used as a printf format
> string, shouldn't backslashes also be escaped, like
> ${prefix//[%\\]/&&}?

Have you tested this? I don't think "&" as a reference to the pattern
match works in bash pattern substitution the way it does in sed
substitutions.

-- 
Jean Delvare
SUSE L3 Support

_______________________________________________
Quilt-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/quilt-dev

Reply via email to