From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.devel Subject: Re: MinGW vs. c-api.test Date: Fri, 13 Jun 2014 10:15:19 +0100 Message-ID: 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; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1402650954 28774 80.91.229.3 (13 Jun 2014 09:15:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Jun 2014 09:15:54 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Jun 13 11:15:47 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 1WvNaK-0000rs-5m for guile-devel@m.gmane.org; Fri, 13 Jun 2014 11:15:44 +0200 Original-Received: from localhost ([::1]:57674 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvNaJ-0003FY-Ny for guile-devel@m.gmane.org; Fri, 13 Jun 2014 05:15:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41334) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvNa7-0003FN-NG for guile-devel@gnu.org; Fri, 13 Jun 2014 05:15:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WvNa1-0003He-KL for guile-devel@gnu.org; Fri, 13 Jun 2014 05:15:31 -0400 Original-Received: from out1.ip07ir2.opaltelecom.net ([62.24.128.243]:51550) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvNa1-0003GW-EG for guile-devel@gnu.org; Fri, 13 Jun 2014 05:15:25 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkwNACzAmlNOlcR5/2dsb2JhbABagw1SgnRRwBIDAgGBBBd1hAMBAQQBIw8BBR4oCwQEAxQBBQImAgIsDR4ZCIgyDLJWnz4XFoEUh2qFTxaCX4FMBJo2k1SDPTw X-IPAS-Result: AkwNACzAmlNOlcR5/2dsb2JhbABagw1SgnRRwBIDAgGBBBd1hAMBAQQBIw8BBR4oCwQEAxQBBQImAgIsDR4ZCIgyDLJWnz4XFoEUh2qFTxaCX4FMBJo2k1SDPTw X-IronPort-AV: E=Sophos;i="5.01,470,1400022000"; d="scan'208";a="113642852" Original-Received: from host-78-149-196-121.as13285.net (HELO arudy) ([78.149.196.121]) by out1.ip07ir2.opaltelecom.net with ESMTP; 13 Jun 2014 10:15:23 +0100 Original-Received: by arudy (Postfix, from userid 33) id 18E7938056; Fri, 13 Jun 2014 10:15:19 +0100 (BST) X-PHP-Originating-Script: 0:rcmail.php In-Reply-To: <87mwdheser.fsf@gnu.org> X-Sender: neil@ossau.homelinux.net User-Agent: Roundcube Webmail/0.9.5 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 62.24.128.243 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:17220 Archived-At: > Eli Zaretskii skribis: > >>> From: ludo@gnu.org (Ludovic Courtès) >>> 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 instead >>> >> >> + ;; use NUL. Note that file system procedures automatically translate >>> >> >> + ;; /dev/null, so this variable is only useful for shell snippets. >>> >> >> + (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’t perfect either, no? What would you >>> >> prefer? >>> > >>> > How about testing if the absolute name of the current directory starts >>> > 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 //... 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? Neil