Adding support for `cat a.out | size -`

Nick Clifton nickc@redhat.com
Wed Nov 8 10:15:00 GMT 2017


Hi Andreas,

>>> In any case, this would still be a breaking change, because size - reads a - file at the moment. Should I add a command line flag?
>>
>> Yes.  Presumably "--" would be the appropriate flag.
> 
> No, that would be wrong.  '-' is not a option, so '--' does not suppress
> its meaning.  Likewise, `cat -- -' always reads stdin, not the file
> `./-'.

I see what you mean.  OK, how about a --file option whose argument is always interpreted
as a file name, even if it is "-" ?

Cheers
  Nick




More information about the Binutils mailing list