summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Bex <peter@more-magic.net>2012-10-04 23:07:51 +0200
committerPeter Bex <peter@more-magic.net>2012-10-04 23:07:51 +0200
commit2ea13e19bf446e45eae2741403462b6fcd679c1a (patch)
treeb14f30fa9752a9ebcc55149daa30bf3d6a24a7d5
parent087b92d73a6ae0bc7483162caf96777bc2d09bae (diff)
downloadscsh-process-2ea13e19bf446e45eae2741403462b6fcd679c1a.tar.gz
Use shell arithmetic instead of "bc". It's more portable
-rw-r--r--tests/run.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/run.scm b/tests/run.scm
index ab023eb..2ad287f 100644
--- a/tests/run.scm
+++ b/tests/run.scm
@@ -68,7 +68,9 @@
(let ((echo-command 'echo))
(test "Subprocess piped to another process, writing to a file"
"1235\n"
- (begin (run (pipe (,echo-command "1234" + 1) ("bc")) (> outfile))
+ (begin (run (pipe (,echo-command "1234" + 1)
+ ("sh" -c "read foo; echo $(($foo))"))
+ (> outfile))
(read-all "outfile"))))
(delete-file* "outfile")