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: What have you done to strings!


> On 28 Oct 2014, at 23:19, Andreas Schwab <schwab@linux-m68k.org> wrote:
> 
> Again, you are 35 years late.  strings has *always* been "smart" by
> default.

Right, but I won't be against making -a the default.

First, it would still be posix compliant (-a is implementation defined).
Second, it is safer and easier to implement.
Third, I suppose the use of strings in scripts is tiny.
Fourth, 'strings -a' is more useful than 'strings'.  35 years ago, there
was only code in .text. Nowadays (and since 'const' is part of C), 
strings and const are in .text; so having -a the default would be more
compatible with the old behaviour.

Well, IMHO.

Tristan.


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