This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Adding support for `cat a.out | size -`
On Nov 07 2017, Nick Clifton <nickc@redhat.com> wrote:
>> 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
`./-'.
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."