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 -`


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



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