From 70324d37b3fbd854aa670943425d540c96e43914 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Tue, 14 May 2024 12:53:55 +0200 Subject: patch_format: escape all occurences of % [In addition, escape backslash (\) as well.] Signed-off-by: Andreas Gruenbacher --- 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..2db4c82 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" } setup_colors() -- cgit