[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#64216: Proc open-input-pipe returns #eof when reading on macOS, work
From: |
Jose Ortiz |
Subject: |
bug#64216: Proc open-input-pipe returns #eof when reading on macOS, works as expected on Linux |
Date: |
Wed, 21 Jun 2023 17:31:18 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#64216: Proc open-input-pipe returns #eof when reading on macOS, works as expected on Linux,
Jose Ortiz <=