Paul Eggert wrote: > Eric Blake <ericbl...@comcast.net> writes: >>> $ ls - >>> ls: cannot access -: No such file or directory >> >> ls is not one of those commands. So rather than listing >> stdin or stdout (neither of which makes sense) > > Actually, it would make a lot of sense for 'ls' to list stdin, no? > 'ls' could apply fstat to stdin and show the results.
Good point. Not long ago, I found a good enough use case: http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/18175 to justify changing stat-without-"-f" to interpret "-" as stdin: http://git.sv.gnu.org/cgit/coreutils.git/commit/?id=a033e28737c1f6320