Closed iammer closed 6 years ago
The first gives zfec
the actual file object as its stdin, and thus can seek.
The second command is a pipe, which is a stream that cannot be seeked.
Looks like the command line script requires the complete filesize upfront, which is why it tries to seek to the end.
We should wrap that seek()
in something which catches the IOError and wraps it in a better error message, something like "sorry, zfec -
needs a real (Seekable) filehandle so it can measure the file size".
This works:
zfec - < some-file
However this:
cat some-file | zfec -
results in: