According to the document, "The result is eof if amount is not 0 or 'avail and no bytes are available before an end-of-file; otherwise, it is a string containing the read bytes......The result can be an empty string only if amount is 0 or 'avail." Yet I got an empty string, instead of an eof, when I tried running (fd-read (hash-ref (process "/bin/ls" "." (hash 'stderr 'pipe)) 'stderr) eof) on Linux 5.15.0-43-generic #46~20.04.1-Ubuntu.
According to the document, "The result is
eof
if amount is not0
or'avail
and no bytes are available before an end-of-file; otherwise, it is a string containing the read bytes......The result can be an empty string only if amount is0
or'avail
." Yet I got an empty string, instead of aneof
, when I tried running(fd-read (hash-ref (process "/bin/ls" "." (hash 'stderr 'pipe)) 'stderr) eof)
onLinux 5.15.0-43-generic #46~20.04.1-Ubuntu
.