projects
/
platform
/
upstream
/
automake.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: use more POSIX shell features our test scripts
[platform/upstream/automake.git]
/
t
/
spy.sh
diff --git
a/t/spy.sh
b/t/spy.sh
index
0d087a4
..
dd486ce
100755
(executable)
--- a/
t/spy.sh
+++ b/
t/spy.sh
@@
-80,18
+80,18
@@
touch b c
$sleep
: > a
$MAKE
$sleep
: > a
$MAKE
-test
"`cat a`" = ''
+test
x"$(cat a)" = x
$sleep
touch b
$MAKE
$sleep
touch b
$MAKE
-test "
`cat a`" = rule1
+test "
$(cat a)" = "rule1"
# Ensure a is strictly newer than b, so HP-UX make does not execute rule2.
$sleep
: > a
$sleep
touch c
$MAKE
# Ensure a is strictly newer than b, so HP-UX make does not execute rule2.
$sleep
: > a
$sleep
touch c
$MAKE
-test "
`cat a`" = rule2
+test "
$(cat a)" = "rule2"
# Unfortunately, the following is not portable to FreeBSD/NetBSD/OpenBSD
# make, see explanation above.
# Unfortunately, the following is not portable to FreeBSD/NetBSD/OpenBSD
# make, see explanation above.