unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#64216: Proc open-input-pipe returns #eof when reading on macOS, works as expected on Linux
@ 2023-06-22  0:31 Jose Ortiz
  2023-08-08 11:30 ` bug#64216: "ice-9 popen" cannot open process on Darwin Torrekie
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jose Ortiz @ 2023-06-22  0:31 UTC (permalink / raw)
  To: 64216

[-- Attachment #1: Type: text/plain, Size: 981 bytes --]

When reading from open-input-pipe, it returns #eof on macOS devices, while it works properly in Linux.

```
(use-modules (ice-9 popen)
              (ice-9 rdelim))
(let* ((port (open-input-pipe "date --utc"))
        (str  (read-line port)))
   (close-pipe port)
   str)
```
macOS> #<eof>
linux> "Thu Jun 22 12:30:26 AM UTC 2023"


Building latest and running popen.test also fails with:

m1 :: Projects/guile/test-suite ? guile -L . -e main -s guile-test tests/popen.test
Running tests/popen.test
                                                                                                                                                                   
FAIL: tests/popen.test: open-input-pipe: echo hello
FAIL: tests/popen.test: open-input-pipe: open-input-pipe process gets (current-input-port) as stdin
ERROR: tests/popen.test: open-output-pipe: no duplicate - arguments: ((wrong-type-arg "string-append" "Wro
ng type (expecting ~A): ~S" ("string" #f) (#f)))



- Jose

[-- Attachment #2: Type: text/html, Size: 1881 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-08-12 21:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-22  0:31 bug#64216: Proc open-input-pipe returns #eof when reading on macOS, works as expected on Linux Jose Ortiz
2023-08-08 11:30 ` bug#64216: "ice-9 popen" cannot open process on Darwin Torrekie
2023-08-11 10:29 ` bug#64216: libgnu __spawni fail " Torrekie
2023-08-12 21:34 ` bug#64216: *spawn calls fixed in latest commit Torrekie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).