The round brackets are non terminals characters for sed, thus these need to be escaped as well.
Signed-off-by: Daniel Wagner <[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 1b6406a90274..549c32e4a3ee 100644 --- a/quilt/scripts/patchfns.in +++ b/quilt/scripts/patchfns.in @@ -87,7 +87,7 @@ quote_grep_re() # Quote a string for use in a regular expression for a sed s/// command. quote_sed_re() { - echo "$1" | sed -e 's:\([][^$/.*\\]\):\\\1:g' + echo "$1" | sed -e 's:\([][^$/.*\\()]\):\\\1:g' } # Quote a string for use in a regular expression for an awk pattern. -- 2.48.1 _______________________________________________ Quilt-dev mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/quilt-dev
