non builtin hax0r

This commit is contained in:
Rutger van Beusekom 2018-07-02 20:18:59 +02:00
parent 4ef3a941aa
commit 29a54650ab
1 changed files with 4 additions and 3 deletions

View File

@ -33,9 +33,10 @@
;; w[2] -> r[3] [sink]
(define (exec* command) ;; list of strings
(catch #t (lambda () (apply execlp (cons (car command) command)))
(lambda (key . args) (format (current-error-port) "~a\n" (caaddr args))
(exit #f))))
(let ((command (map (compose with-output-to-string (lambda (c) (lambda () (display c)))) command)))
(catch #t (lambda () (apply execlp (cons (car command) command)))
(lambda (key . args) (format (current-error-port) "~a\n" (caaddr args))
(exit #f)))))
(define ((tee-n file-names) inputs outputs)
(let* ((files (map open-output-file file-names))