On 2026-01-11 11:54, Andrew L. Moore wrote:
I think it's fair to ask whether traditional behavior of discarding directory arguments and not raising an error is preferred
But traditional/Solaris "ed" doesn't do that. It treats directories just like regular files, and reports an error whenever it would report an error for regular files. Unfortunately traditional "ed" does not check for read error, so when it tries to read from a directory and that read fails, it treats the directory's contents as if it were empty. It does something similar if a read from a regular file fails with EIO or whatever.
