]> git.ipfire.org Git - thirdparty/tar.git/commitdiff
tests: Fix bashism in testsuite.at
authorSam James <sam@gentoo.org>
Tue, 18 Jul 2023 15:45:32 +0000 (16:45 +0100)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 18 Jul 2023 16:47:26 +0000 (09:47 -0700)
&> is a bashism and causes various tests to fail with /bin/sh as non-bash
(e.g. dash). Use the same pattern the rest of the file uses instead of &>.

Copyright-paperwork-exempt: true

tests/testsuite.at

index 44ae773b1347c4a1f652b9a9bd04e0a048c603b2..3a98f8653032b0108238de425a80a3b873ad6e69 100644 (file)
@@ -133,7 +133,7 @@ m4_if([$2],,,&& genfile --file [$1]/[$2]) || AT_SKIP_TEST])
 
 dnl Skip test when utility does not return expected return value
 m4_define([AT_CHECK_UTIL],[
-  $1 &> /dev/null
+  $1 > /dev/null 2>&1
   if test "$?" != $2; then
     AT_SKIP_TEST
   fi