~evhan/chicken-sourcehut

dcf13e8c11b5d33f93177ecddad99a81f27da212 — Evan Hanson 10 months ago 5c0dccf
Allow empty content for commands that read from standard input
1 files changed, 4 insertions(+), 3 deletions(-)

M cli.scm
M cli.scm => cli.scm +4 -3
@@ 120,9 120,10 @@
      (open-input-file x)))

(define (input x)
  (if (equal? x "-")
      (read-string)
      (with-input-from-file x read-string)))
  (let ((s (if (equal? x "-")
               (read-string)
               (with-input-from-file x read-string))))
    (if (eof-object? s) "" s)))

(define (retrieve-paged crud #!optional (limit 50))
  (let loop ((crud crud) (count 0))