aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-06-26 13:48:43 -0700
committerRob Landley <rob@landley.net>2019-06-28 11:23:17 -0500
commit9b7c46904d340bfaa2ab302cb895c1c2c781cffa (patch)
treeaf4ae95bc4c2b930d29529c4f08272cbc4e0b678
parent50f27779b68fb36cdc2ed4d929c8d97a0f69fe9f (diff)
downloadtoybox-9b7c46904d340bfaa2ab302cb895c1c2c781cffa.tar.gz
split.test: don't rely on bash process substitution.
mksh doesn't support process substitution, so use an explicit temporary file.
-rwxr-xr-xtests/split.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/split.test b/tests/split.test
index 533cd4fa..4a522432 100755
--- a/tests/split.test
+++ b/tests/split.test
@@ -25,7 +25,7 @@ testing "bytes" \
"seq 1 20000 | split -b 100 -a 3 - whang && ls whang* | wc -l && wc -c whangbpw" "1089\n94 whangbpw\n" "" ""
testing "reassembly" \
- 'diff -u <(ls whang* | sort | xargs cat) <(seq 1 20000) && echo yes' \
+ 'ls whang* | sort | xargs cat > reassembled && seq 1 20000 | diff -u reassembled - && echo yes' \
"yes\n" "" ""
-rm file whang*
+rm file whang* reassembled