From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.devel Subject: MinGW vs. c-api.test Date: Mon, 09 Jun 2014 21:32:34 +0200 Message-ID: <87y4x56fql.fsf@gnu.org> References: <83lht730k8.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1402342547 16823 80.91.229.3 (9 Jun 2014 19:35:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Jun 2014 19:35:47 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Jun 09 21:35:39 2014 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Wu5M0-0006S5-0b for guile-devel@m.gmane.org; Mon, 09 Jun 2014 21:35:36 +0200 Original-Received: from localhost ([::1]:34962 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wu5Lz-0004Td-2m for guile-devel@m.gmane.org; Mon, 09 Jun 2014 15:35:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48429) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wu5Lk-0004TR-7M for guile-devel@gnu.org; Mon, 09 Jun 2014 15:35:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wu5Le-0005wW-8w for guile-devel@gnu.org; Mon, 09 Jun 2014 15:35:20 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:53490) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wu5Le-0005wR-2J for guile-devel@gnu.org; Mon, 09 Jun 2014 15:35:14 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Wu5LT-00064G-LA for guile-devel@gnu.org; Mon, 09 Jun 2014 21:35:03 +0200 Original-Received: from reverse-83.fdn.fr ([80.67.176.83]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 09 Jun 2014 21:35:03 +0200 Original-Received: from ludo by reverse-83.fdn.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 09 Jun 2014 21:35:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 29 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: reverse-83.fdn.fr X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 21 Prairial an 222 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu User-Agent: Gnus/5.130009 (Ma Gnus v0.9) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:w3n+vaHP9UMUVM+qiGtRdIS83ss= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:17196 Archived-At: Eli Zaretskii skribis: > 2. c-api.test fails with many messages such as this one: > > 'CUR' is not recognized as an internal or external command, > operable program or batch file. > > This is because c-api.test does this: > > (define (egrep string filename) > (zero? (system (string-append "egrep '" string "' " filename " >/dev/null")))) > ... > (if (and (file-exists? file) > (egrep "SEEK_(SET|CUR|END)" file)) > > There are two problems here: quoting that is not supported by > Windows shells, and redirection to /dev/null. The former is easily > fixed portably: > > (system (string-append "egrep \"" string \"" " filename > > The latter requires either an OS-dependent string in the *.scm > source of the test, or a variable (called, e.g., null-device) that > will be set correctly for each platform, which could then be used > by the test unconditionally. What’s the name of /dev/null on Windows? Ludo’.