From 2ea13e19bf446e45eae2741403462b6fcd679c1a Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Thu, 4 Oct 2012 23:07:51 +0200 Subject: Use shell arithmetic instead of "bc". It's more portable --- tests/run.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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") -- cgit v1.2.3