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.
This commit is contained in:
Pádraig Brady 2026-01-23 19:19:59 +00:00
parent 25fccc7c46
commit bdf53cc685

View File

@ -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