(for-each write-string strings))
(define (run . strings)
- (let ((cmdln (apply string strings)))
+ (let ((cmdln (string* strings)))
(log cmdln"\n")
(shell* cmdln)))
(define (run-noerror . strings)
- (let ((cmdln (apply string strings)))
+ (let ((cmdln (string* strings)))
(log cmdln"\n")
(shell*-noerror cmdln)))
(define (shell-lines . strings)
- (call-with-input-string (shell-output (apply string strings)) read-lines))
+ (call-with-input-string (shell-output (string* strings)) read-lines))
(define (file-lines . strings)
- (call-with-input-file (apply string strings) read-lines))
+ (call-with-input-file (string* strings) read-lines))
(define (read-lines port)
(let loop ((lines '()))
(loop (cons line lines))))))
(define (shell-output . strings)
- (let ((cmdln (apply string strings)))
+ (let ((cmdln (string* strings)))
(call-with-output-string
(lambda (port)
(let ((status (shell* cmdln 'output port)))
(error "Non-zero exit status:" cmdln)))))))
(define (shell . strings)
- (shell* (apply string strings)))
+ (shell* (string* strings)))
(load-option 'synchronous-subprocess)