From bdc45990c7455a550eee110b99d2990928ae0efb Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?=
Date: Wed, 21 Jan 2026 19:30:21 +0000 Subject: [PATCH] tests: avoid false failure with non standard path * tests/misc/usage_vs_refs.sh: Properly quote arguments to avoid false failure with paths containing spaces etc. --- tests/misc/usage_vs_refs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/misc/usage_vs_refs.sh b/tests/misc/usage_vs_refs.sh index 48965b9319..0e0d111fd7 100755 --- a/tests/misc/usage_vs_refs.sh +++ b/tests/misc/usage_vs_refs.sh @@ -54,9 +54,9 @@ for prg in $built_programs; do for opt in $(getopts $prg); do got_option=true if ! grep -E "opt(Itemx?|Anchor){$dprg,$opt[,}]" \ - $abs_top_srcdir/doc/coreutils.texi >/dev/null; then + "$abs_top_srcdir/doc/coreutils.texi" >/dev/null; then if ! grep "optItemx\\?{\\\\cmd\\\\,$opt," \ - $abs_top_srcdir/doc/coreutils.texi >/dev/null; then + "$abs_top_srcdir/doc/coreutils.texi" >/dev/null; then printf -- '%s %s reference missing in texi\n' $dprg $opt >&2 fail=1 elif test "$DEBUG"; then -- 2.47.3