This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


On Nov 08 2017, Nick Clifton <nickc@redhat.com> wrote:

> 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 "-" ?

You can always use `./-'.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]