]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: avoid false failure with non standard path
authorPádraig Brady <P@draigBrady.com>
Wed, 21 Jan 2026 19:30:21 +0000 (19:30 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 21 Jan 2026 19:30:21 +0000 (19:30 +0000)
* tests/misc/usage_vs_refs.sh: Properly quote arguments
to avoid false failure with paths containing spaces etc.

tests/misc/usage_vs_refs.sh

index 48965b93194b0983c60e0eb57f26b94467ff1878..0e0d111fd7a7a62f52cbbfcb7fd1bdaa25c33181 100755 (executable)
@@ -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