]> Sergey Matveev's repositories - bfs.git/blobdiff - tests/posix/exec_plus_nonexistent.sh
tests: Fix Bash 3 compatibility
[bfs.git] / tests / posix / exec_plus_nonexistent.sh
index 6bddc67540c84d5828b1876fced6549e71d92db9..24582a341c35cbde48a15163e177010ad28c1e69 100644 (file)
@@ -1,4 +1,2 @@
-! stderr=$(invoke_bfs basic -exec "$TESTS/nonexistent" {} + 2>&1 >/dev/null)
-[ -n "$stderr" ]
-
-! bfs_diff basic -exec "$TESTS/nonexistent" {} + -print
+bfs_diff basic -exec "$TESTS/nonexistent" {} + -print 2>"$TEST/err" && fail
+test -s "$TEST/err"