bournish: Handle EOF in the reader. * guix/build/bournish.scm (read-bournish): Add case for EOF.
1 files changed, 4 insertions(+), 2 deletions(-) M guix/build/bournish.scm
M guix/build/bournish.scm => guix/build/bournish.scm +4 -2
@@ 134,8 134,10 @@ commands such as 'ls' and 'cd'; it lacks globbing, pipes---everything.\n")) (define (read-bournish port env) "Read a Bournish expression from PORT, and return the corresponding Scheme code as an sexp." (match (string-tokenize (read-line port)) ((command args ...) (match (read-line port) ((? eof-object? eof) eof) ((= string-tokenize (command args ...)) (match (assoc command %commands) ((command proc) ;built-in command (apply proc (map expand-variable args)))