unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* c-api.test fails on MS-Windows due to non-portable quoting
@ 2016-07-23 11:18 Eli Zaretskii
  2016-07-23 21:11 ` Andy Wingo
  0 siblings, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2016-07-23 11:18 UTC (permalink / raw)
  To: guile-devel

It fails like this:

     Running c-api.test
     'CUR' is not recognized as an internal or external command,
     operable program or batch file.
     egrep: Unmatched ( or \('CUR' is not recognized as an internal or external command, operable program or batch file.

This is because it quotes shell commands /bin/sh '..' style:

     (define (egrep string filename)
       (zero? (system (string-append "egrep '" string "' " filename
				     " >" %null-device))))

The solution is to use the ".." style of quoting:

--- test-suite/tests/c-api.test~0	2016-01-02 13:32:40.000000000 +0200
+++ test-suite/tests/c-api.test	2016-07-23 14:12:57.257375000 +0300
@@ -22,7 +22,7 @@
 (define srcdir (cdr (assq 'srcdir %guile-build-info)))
 
 (define (egrep string filename)
-  (zero? (system (string-append "egrep '" string "' " filename
+  (zero? (system (string-append "egrep \"" string "\" " filename
                                 " >" %null-device))))
 
 (define (seek-offset-test dirname)

OK to push such a change?



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-08-31 19:05 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-23 11:18 c-api.test fails on MS-Windows due to non-portable quoting Eli Zaretskii
2016-07-23 21:11 ` Andy Wingo
2016-07-24 14:30   ` Eli Zaretskii
2016-08-10  6:24     ` Mark H Weaver
2016-08-10 14:26       ` Eli Zaretskii
2016-08-10 14:51         ` Eli Zaretskii
2016-08-10 17:03           ` Mark H Weaver
2016-08-13  9:11             ` Eli Zaretskii
2016-08-13 11:55               ` Eli Zaretskii
2016-08-27  8:23                 ` Eli Zaretskii
2016-08-31  8:52                   ` Andy Wingo
2016-08-31 19:05                     ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).