[newlib-cygwin] Cygwin: Use grep in text mode to look for version strings

Jon TURNEY jturney@sourceware.org
Wed Nov 18 16:27:12 GMT 2020


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=ff315bd18f81c8ed90dfd4a7c1b673d9cd67dc8a

commit ff315bd18f81c8ed90dfd4a7c1b673d9cd67dc8a
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date:   Wed Oct 28 20:59:53 2020 +0000

    Cygwin: Use grep in text mode to look for version strings
    
    Invoke grep in text mode when looking for version strings inside the
    cygwin DLL, so it outputs something more informative than:
    
      Binary file ../cygwin/cygwin0.dll matches

Diff:
---
 winsup/testsuite/config/default.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/winsup/testsuite/config/default.exp b/winsup/testsuite/config/default.exp
index 3936979a6..8033ea627 100644
--- a/winsup/testsuite/config/default.exp
+++ b/winsup/testsuite/config/default.exp
@@ -1,7 +1,7 @@
 proc winsup_version {} {
     global env
     global rootme
-    clone_output "\n[exec grep ^%%% $rootme/../cygwin/cygwin0.dll]\n"
+    clone_output "\n[exec grep -a ^%%% $rootme/../cygwin/cygwin0.dll]\n"
     if { [info exists env(CYGWIN)] } {
         clone_output "CYGWIN=$env(CYGWIN)\n"
     } else {


More information about the Cygwin-cvs mailing list