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: Re: MinGW vs. c-api.test Date: Fri, 13 Jun 2014 18:04:57 +0200 Message-ID: <87ppiciymu.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> <838up1yk3x.fsf@gnu.org> <87mwdheser.fsf@gnu.org> 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 1402675524 5949 80.91.229.3 (13 Jun 2014 16:05:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Jun 2014 16:05:24 +0000 (UTC) Cc: Eli Zaretskii , guile-devel@gnu.org To: Neil Jerram Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Jun 13 18:05:17 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 1WvTye-0007Ai-02 for guile-devel@m.gmane.org; Fri, 13 Jun 2014 18:05:16 +0200 Original-Received: from localhost ([::1]:59951 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvTyd-0001Y6-H6 for guile-devel@m.gmane.org; Fri, 13 Jun 2014 12:05:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvTyX-0001V0-P6 for guile-devel@gnu.org; Fri, 13 Jun 2014 12:05:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WvTyT-0005fG-AC for guile-devel@gnu.org; Fri, 13 Jun 2014 12:05:09 -0400 Original-Received: from hera.aquilenet.fr ([2a01:474::1]:44789) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvTyO-0005XE-1A; Fri, 13 Jun 2014 12:05:00 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 84E4C2D07; Fri, 13 Jun 2014 18:04:58 +0200 (CEST) Original-Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id li9Hn4L1n4Ha; Fri, 13 Jun 2014 18:04:58 +0200 (CEST) Original-Received: from pluto (reverse-83.fdn.fr [80.67.176.83]) by hera.aquilenet.fr (Postfix) with ESMTPSA id F23D22C2C; Fri, 13 Jun 2014 18:04:57 +0200 (CEST) X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 25 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 In-Reply-To: (Neil Jerram's message of "Fri, 13 Jun 2014 10:15:19 +0100") User-Agent: Gnus/5.130009 (Ma Gnus v0.9) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a01:474::1 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:17221 Archived-At: Neil Jerram skribis: >> Eli Zaretskii skribis: >> >>>> From: ludo@gnu.org (Ludovic Court=C3=A8s) >>>> Cc: guile-devel@gnu.org >>>> Date: Thu, 12 Jun 2014 21:48:48 +0200 >>>> >>>> >> >> +(define %null-device >>>> >> >> + ;; On Windows (MinGW), /dev/null does not exist and we must i= nstead >>>> >> >> + ;; use NUL. Note that file system procedures automatically t= ranslate >>>> >> >> + ;; /dev/null, so this variable is only useful for shell snipp= ets. >>>> >> >> + (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. >>>> >> >>>> >> Yes, but using %host-type isn=E2=80=99t perfect either, no? What w= ould you >>>> >> prefer? >>>> > >>>> > How about testing if the absolute name of the current directory star= ts >>>> > with a drive letter? >>>> >>>> Like (string-match "^[a-zA-Z]:[/\\]" (getcwd)) ? >>> >>> Yes. > > But my Git Bash shell on Windows (at work) gives me paths like / letter>/... > For example: > > nj@PC3946 /c/work/icp (master) > $ pwd > /c/work/icp > > I think that shell is provided by MinGW/MSYS - so does that mean that > the regexp check > above might not be correct in all contexts on Windows? Isn=E2=80=99t it rather provided by Cygwin? I would think that (getcwd) on Cygwin would return /c/... whereas (getcwd) on MinGW would return C:\..., no? Thanks, Ludo=E2=80=99.