[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: touching "-"
From: |
Jim Meyering |
Subject: |
Re: touching "-" |
Date: |
Wed, 09 Dec 2009 19:14:43 +0100 |
Paul Eggert wrote:
> Eric Blake <address@hidden> 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