summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xt/ax/is3
-rwxr-xr-xt/ax/is_newest8
2 files changed, 8 insertions, 3 deletions
diff --git a/t/ax/is b/t/ax/is
index 1e1c0ce48..4f043cabb 100755
--- a/t/ax/is
+++ b/t/ax/is
@@ -21,6 +21,9 @@
# in the face of variables defined through line-continuations,
# automake rewrites and expansions of empty variables.
+# NOTE: keep this file Bourne-compatible, for the sake of systems with
+# non-POSIX /bin/sh (like Solaris).
+
set -e
set -u
diff --git a/t/ax/is_newest b/t/ax/is_newest
index f52a1a8e3..cd1a38eb2 100755
--- a/t/ax/is_newest
+++ b/t/ax/is_newest
@@ -16,8 +16,10 @@
# Usage: is_newest FILE FILES
# Fail if any file in FILES is newer than FILE, and print the list of
-# such files on the standard error.
-# Resolve ties in favor of FILE.
+# such files on the standard error. Resolve ties in favor of FILE.
+
+# NOTE: keep this file Bourne-compatible, for the sake of systems with
+# non-POSIX /bin/sh (like Solaris).
set -u
@@ -29,7 +31,7 @@ if test $# -lt 2; then
fi
file=$1; shift
-newer_files=$(find "$@" -prune -newer "$file") || exit $?
+newer_files=`find "$@" -prune -newer "$file"` || exit $?
if test -n "$newer_files"; then
echo "$me: these files are newer than '$file':" >&2