Adding process->sexp utility.

This commit is contained in:
Alex Shinn 2014-01-19 12:38:10 +09:00
parent 4ade4f7d2a
commit b7676fbb47
2 changed files with 5 additions and 1 deletions

View file

@ -113,6 +113,9 @@
(waitpid pid 0)
res))))
(define (process->sexp str)
(call-with-input-string (process->string str) read))
(define (process->output+error str)
(call-with-process-io
str

View file

@ -15,7 +15,8 @@
signal/stop signal/tty-stop signal/tty-input
signal/tty-output wait/no-hang
call-with-process-io
process->string process->string-list process->output+error)
process->string process->sexp
process->string-list process->output+error)
(import (chibi) (chibi io) (chibi string) (chibi filesystem))
(cond-expand (threads (import (srfi 18) (srfi 33))) (else #f))
(include-shared "process")