On Mon, Dec 15, 2014 at 05:37:03PM -0500, Sergio Durigan Junior wrote: > 2014-12-14 Sergio Durigan Junior <sergi...@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