]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: usage_vs_refs.sh: fix false failure with Alpine
authorPádraig Brady <P@draigBrady.com>
Fri, 23 Jan 2026 19:19:59 +0000 (19:19 +0000)
committerPádraig Brady <P@draigBrady.com>
Fri, 23 Jan 2026 22:32:20 +0000 (22:32 +0000)
* tests/misc/usage_vs_refs.sh: Fix missing escape on literal {,
required by busybox grep.
Reported by Bruno Haible.

tests/misc/usage_vs_refs.sh

index ebb132a68ba545c026269e9460a34cc2478aee78..6e5a43f2185fd0501c4ddbc3814abb004a25414b 100755 (executable)
@@ -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