Adding support for `cat a.out | size -`
Andreas Schwab
schwab@suse.de
Wed Nov 8 09:06:00 GMT 2017
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."
More information about the Binutils
mailing list