summaryrefslogtreecommitdiff
path: root/scsh-process.scm
diff options
context:
space:
mode:
Diffstat (limited to 'scsh-process.scm')
-rw-r--r--scsh-process.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/scsh-process.scm b/scsh-process.scm
index e60fb67..1fa12d9 100644
--- a/scsh-process.scm
+++ b/scsh-process.scm
@@ -322,7 +322,7 @@
(duplicate-fileno (file-open (maybe->string `?file-name) open/rdonly)
`?fd))
((_ (<< ?fd ?object))
- (fork/pipe (lambda () (display `?object))))
+ (fork/pipe+ `((1 ?fd)) (lambda () (display `?object (open-output-file* 1)))))
((_ (= ?fd-from ?fd/port-to))
(let* ((fd/port-to ?fd/port-to) ; Evaluate once
(fd-to (if (port? fd/port-to)