Commits

Peter Bex committed 8fc89b2

Use shell arithmetic instead of "bc". It's more portable

Comments (0)

Files changed (1)

     (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")