pandoc/pandoc.gauche.scm

8 lines
212 B
Scheme
Raw Normal View History

2021-08-24 14:03:49 -04:00
(define (run-read-write args input-port read-output)
(call-with-process-io
args
(lambda (from-sub to-sub)
(copy-port input-port to-sub)
(close-output-port to-sub)
(read-output from-sub))))