From: Pádraig Brady Date: Fri, 23 Jan 2026 19:19:59 +0000 (+0000) Subject: tests: usage_vs_refs.sh: fix false failure with Alpine X-Git-Tag: v9.10~25 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bdf53cc6852f5939d6509f30911dd11d237a913d;p=thirdparty%2Fcoreutils.git tests: usage_vs_refs.sh: fix false failure with Alpine * tests/misc/usage_vs_refs.sh: Fix missing escape on literal {, required by busybox grep. Reported by Bruno Haible. --- diff --git a/tests/misc/usage_vs_refs.sh b/tests/misc/usage_vs_refs.sh index ebb132a68b..6e5a43f218 100755 --- a/tests/misc/usage_vs_refs.sh +++ b/tests/misc/usage_vs_refs.sh @@ -53,7 +53,7 @@ for prg in $built_programs; do got_option=false for opt in $(getopts $prg); do got_option=true - if ! grep -E "opt(Itemx?|Anchor){$dprg,$opt[,}]" \ + if ! grep -E "opt(Itemx?|Anchor)\\{$dprg,$opt[,}]" \ "$abs_top_srcdir/doc/coreutils.texi" >/dev/null; then if ! grep "optItemx\\?{\\\\cmd\\\\,$opt," \ "$abs_top_srcdir/doc/coreutils.texi" >/dev/null; then