Opened 9 years ago

Last modified 9 years ago

#1274 closed defect

read-all receiving #<unspecified> unless preceded by a precidate — at Initial Version

Reported by: sjamaan Owned by:
Priority: major Milestone: 4.11.0
Component: unknown Version: 4.10.x
Keywords: Cc:
Estimated difficulty:

Description

This happens in csi:

;; This works:
(require-extension utils)

(define (command/string command)
  (define-values (proc-output proc-input proc-id) (process command))
  (port? proc-output)
  (define retval (read-all proc-output))
  (close-input-port proc-output)
  (close-output-port proc-input)
  retval)

(print (command/string "ls"))
;; This breaks:

(require-extension utils)

(define (command/string command)
  (define-values (proc-output proc-input proc-id) (process command))
  (define retval (read-all proc-output))
  (close-input-port proc-output)
  (close-output-port proc-input)
  retval)

(command/string "ls")

;; Gives us:
;; Error: (open-input-file) bad argument type - not a string: #<unspecified>

Change History (0)

Note: See TracTickets for help on using tickets.