From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.lisp.guile.devel Subject: Re: MinGW vs. c-api.test Date: Thu, 12 Jun 2014 22:59:46 +0300 Message-ID: <838up1yk3x.fsf@gnu.org> References: <83lht730k8.fsf@gnu.org> <87y4x56fql.fsf@gnu.org> <87y4x5ng4u.fsf@gnu.org> <83fvjc22pc.fsf@gnu.org> <87bntzoc4e.fsf@gnu.org> <83ha3rzdoj.fsf@gnu.org> <87d2eelee3.fsf@gnu.org> <83r42uxd3v.fsf@gnu.org> <87vbs5gb8f.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1402603228 10837 80.91.229.3 (12 Jun 2014 20:00:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Jun 2014 20:00:28 +0000 (UTC) Cc: guile-devel@gnu.org To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Jun 12 22:00:21 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 1WvBAb-0003QF-1R for guile-devel@m.gmane.org; Thu, 12 Jun 2014 22:00:21 +0200 Original-Received: from localhost ([::1]:55456 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvBAa-0003nD-K2 for guile-devel@m.gmane.org; Thu, 12 Jun 2014 16:00:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvBAS-0003mr-E4 for guile-devel@gnu.org; Thu, 12 Jun 2014 16:00:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WvBAM-0002rd-Ic for guile-devel@gnu.org; Thu, 12 Jun 2014 16:00:12 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:36338) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvBAM-0002oo-BL; Thu, 12 Jun 2014 16:00:06 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0N7200L00N17GP00@a-mtaout20.012.net.il>; Thu, 12 Jun 2014 23:00:05 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N7200LO8NJZ9G30@a-mtaout20.012.net.il>; Thu, 12 Jun 2014 22:59:59 +0300 (IDT) In-reply-to: <87vbs5gb8f.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 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:17218 Archived-At: > From: ludo@gnu.org (Ludovic Court=C3=A8s) > Cc: guile-devel@gnu.org > Date: Thu, 12 Jun 2014 21:48:48 +0200 >=20 > >> >> +(define %null-device > >> >> + ;; On Windows (MinGW), /dev/null does not exist and we mus= t instead > >> >> + ;; use NUL. Note that file system procedures automaticall= y translate > >> >> + ;; /dev/null, so this variable is only useful for shell sn= ippets. > >> >> + (if (file-exists? "/dev/null") > >> >> + "/dev/null" > >> >> + "NUL")) > >> > > >> > Not sure this is a good idea: I can create a file /dev/null on > >> > Windows, but that doesn't mean it is my null device. > >>=20 > >> Yes, but using %host-type isn=E2=80=99t perfect either, no? Wha= t would you > >> prefer? > > > > How about testing if the absolute name of the current directory s= tarts > > with a drive letter? >=20 > Like (string-match "^[a-zA-Z]:[/\\]" (getcwd)) ? Yes.