guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] 02/02: Modifies command line quoting in c-api.test


From: Mike Gran
Subject: [Guile-commits] 02/02: Modifies command line quoting in c-api.test
Date: Sun, 2 Oct 2022 10:46:01 -0400 (EDT)

mike121 pushed a commit to branch main
in repository guile.

commit 45cc892fe3719bf0fc53ef927eec71854264a95d
Author: Mike Gran <spk121@yahoo.com>
AuthorDate: Sun Oct 2 07:30:48 2022 -0700

    Modifies command line quoting in c-api.test
    
    On MinGW, 'system' uses a non-posix shell that does not handle
    apostrophe as a quoting character. For this test, quoting a command-line
    with double quotes allows it to be run with both /bin/sh and cmd.exe.
    
    * test-suite/tests/c-api.test (egrep): use double quotes when
      quoting command line
---
 test-suite/tests/c-api.test | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test-suite/tests/c-api.test b/test-suite/tests/c-api.test
index 06dba53c5..6d6f91f85 100644
--- a/test-suite/tests/c-api.test
+++ b/test-suite/tests/c-api.test
@@ -22,7 +22,7 @@
 (define srcdir (cdr (assq 'srcdir %guile-build-info)))
 
 (define (egrep string filename)
-  (zero? (system (string-append "grep -E '" string "' " filename
+  (zero? (system (string-append "grep -E \"" string "\" " filename
                                 " >" %null-device))))
 
 (define (seek-offset-test dirname)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]