summaryrefslogtreecommitdiff
path: root/tests/tail-2/inotify-race.sh
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2015-05-19 12:36:29 +0100
committerPádraig Brady <P@draigBrady.com>2015-05-19 15:00:57 +0100
commitedc5bc5020e67c0835b6e4cf8fd9fef81055c148 (patch)
treef183f1fd495cbc1d459d6133681d7c665c09dbb5 /tests/tail-2/inotify-race.sh
parent719c15a6f2ae6bf5d17021c6f138d6378ed06c50 (diff)
downloadcoreutils-edc5bc5020e67c0835b6e4cf8fd9fef81055c148.tar.xz
tests: fix non POSIX constructs causing failures with dash
* tests/cp/no-ctx.sh: Scope of `var=val func` is inconsistent across shells, so avoid that construct with functions. * tests/df/no-mtab-status.sh: Likewise. * tests/tail-2/inotify-race.sh: `read` needs an argument. * tests/tail-2/inotify-race2.sh: Likewise.
Diffstat (limited to 'tests/tail-2/inotify-race.sh')
-rwxr-xr-xtests/tail-2/inotify-race.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tail-2/inotify-race.sh b/tests/tail-2/inotify-race.sh
index 6e1a7fa40..4ce05083f 100755
--- a/tests/tail-2/inotify-race.sh
+++ b/tests/tail-2/inotify-race.sh
@@ -83,7 +83,7 @@ gdb -nx --batch-silent \
--eval-command='quit' \
tail < /dev/null > /dev/null 2>&1 & pid=$!
-tail --pid=$pid -f tail.out | (read; kill $pid)
+tail --pid=$pid -f tail.out | (read REPLY; kill $pid)
# gdb has a bug in Debian's gdb-6.8-3 at least that causes it to not
# cleanup and exit correctly when it receives a SIGTERM, but