diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2020-05-03 16:23:50 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2020-05-03 16:38:34 +0200 |
commit | da5c072a62a44e1d255baf58b088765a4177e727 (patch) | |
tree | fafc984bffdad49d223e9a10f7f5aaa6cddaedc4 /examples | |
parent | 73ac8ff40943de33d2a4099b611ad8a5c1acf776 (diff) | |
download | bison-da5c072a62a44e1d255baf58b088765a4177e727.tar.gz |
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.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/c/reccalc/reccalc.test | 2 |
1 files changed, 1 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>. -seq 0 >/dev/null || exit 77 +(seq 0) >/dev/null 2>&1 || exit 77 cat >input <<EOF 1+2*3 |