[PATCH 1/4] Use grep in text mode to look for version strings
Jon Turney
jon.turney@dronecode.org.uk
Thu Nov 12 19:46:25 GMT 2020
Invoke grep in text mode when looking for version strings inside cygwin
DLL, so it outputs something more informative than:
Binary file ../cygwin/cygwin0.dll matches
---
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 {
--
2.29.2
More information about the Cygwin-patches
mailing list