From da5c072a62a44e1d255baf58b088765a4177e727 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Sun, 3 May 2020 16:23:50 +0200 Subject: [PATCH] tests: beware of portability issues of sh "foo || bar" does not invoke bar on AIX 7.2 when foo does not exist. It just dies. Reported by Bruno Haible. https://lists.gnu.org/r/bug-bison/2020-05/msg00029.html * examples/c/reccalc/reccalc.test: Check for seq in a subshell. --- examples/c/reccalc/reccalc.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/c/reccalc/reccalc.test b/examples/c/reccalc/reccalc.test index 5e0402a8..27716a24 100644 --- a/examples/c/reccalc/reccalc.test +++ b/examples/c/reccalc/reccalc.test @@ -15,7 +15,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -seq 0 >/dev/null || exit 77 +(seq 0) >/dev/null 2>&1 || exit 77 cat >input <