diff options
| author | Peter Bex <peter@more-magic.net> | 2012-10-04 23:07:51 +0200 | 
|---|---|---|
| committer | Peter Bex <peter@more-magic.net> | 2012-10-04 23:07:51 +0200 | 
| commit | 2ea13e19bf446e45eae2741403462b6fcd679c1a (patch) | |
| tree | b14f30fa9752a9ebcc55149daa30bf3d6a24a7d5 /tests | |
| parent | 087b92d73a6ae0bc7483162caf96777bc2d09bae (diff) | |
| download | scsh-process-2ea13e19bf446e45eae2741403462b6fcd679c1a.tar.gz | |
Use shell arithmetic instead of "bc". It's more portable
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/run.scm | 4 | 
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") | 
