This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [PATCH] Make dg-extract-results.sh explicitly treat .{sum,log} files as text


On Mon, Dec 15, 2014 at 05:37:03PM -0500, Sergio Durigan Junior wrote:
> 2014-12-14  Sergio Durigan Junior  <sergiodj@redhat.com>
> 
> 	* dg-extract-results.sh: Pass '--text' option to grep when
> 	filtering .{sum,log} files, which may contain binary data.

I'd be surprised if all versions of grep supported --text option (e.g. POSIX
doesn't mention the -a nor --text options), guess
you'd need to check for that first (early in the script) and add it only if
it works.  Also, supposedly the options should come before the regexp and
list of files.  Why isn't the python version used in your case btw?

	Jakub


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