On Sat, 6 Jul 2019 at 01:48, Eric Blake wrote:
>
> On 7/5/19 11:31 PM, Eric Blake wrote:
>
> > If you wish to cat a file named '-' in the current directory, spell it
> > './-' or use an absolute path to that file. That's true of all command
> > line utilities that treat '-' as stdin (not just
On 7/6/19 4:14 AM, Stephane Chazelas wrote:
> 2019-07-05 23:31:06 -0500, Eric Blake:
> [...]
>> Sorry, but this patch violates POSIX.
>>
>> https://pubs.opengroup.org/onlinepubs/9699919799/toc.htm
>>
>> "If a file is '-', the cat utility shall read from the standard input at
>> that point in the
On Sat, 6 Jul 2019 at 01:31, Eric Blake wrote:
>
> On 7/5/19 11:16 PM, Geyslan G. Bem wrote:
> >>From 99ed9353c43fc8682f99a70d8a0b97d75f78f3f8 Mon Sep 17 00:00:00 2001
> > From: "Geyslan G. Bem"
> > Date: Sat, 6 Jul 2019 01:04:40 -0300
> > Subject: [PATCH] cat: open any file name after "--"
> >
2019-07-05 23:31:06 -0500, Eric Blake:
[...]
> Sorry, but this patch violates POSIX.
>
> https://pubs.opengroup.org/onlinepubs/9699919799/toc.htm
>
> "If a file is '-', the cat utility shall read from the standard input at
> that point in the sequence."
[...]
But coreutils could do that when