[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:


to justify changing stat-without-"-f" to interpret "-" as stdin:


reply via email to

[Prev in Thread] Current Thread [Next in Thread]