From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: CEDET calls cpp -E -dM -x c++ /dev/null Date: Wed, 01 Jul 2009 22:36:30 +0300 Message-ID: <83vdmc2o1t.fsf@gnu.org> References: <83ws6s2oss.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1246477008 16508 80.91.229.12 (1 Jul 2009 19:36:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Jul 2009 19:36:48 +0000 (UTC) Cc: alexott@gmail.com, eric@siege-engine.com, emacs-devel@gnu.org To: Lennart Borgman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 01 21:36:40 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MM5bk-0003Pu-0C for ged-emacs-devel@m.gmane.org; Wed, 01 Jul 2009 21:36:40 +0200 Original-Received: from localhost ([127.0.0.1]:39175 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MM5bj-0007c0-Bd for ged-emacs-devel@m.gmane.org; Wed, 01 Jul 2009 15:36:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MM5be-0007be-L6 for emacs-devel@gnu.org; Wed, 01 Jul 2009 15:36:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MM5be-0007bI-2m for emacs-devel@gnu.org; Wed, 01 Jul 2009 15:36:34 -0400 Original-Received: from [199.232.76.173] (port=48082 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MM5bd-0007b6-S9 for emacs-devel@gnu.org; Wed, 01 Jul 2009 15:36:33 -0400 Original-Received: from mtaout4.012.net.il ([84.95.2.10]:44013 helo=mtaout3.012.net.il) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MM5bc-0004LC-AE for emacs-devel@gnu.org; Wed, 01 Jul 2009 15:36:33 -0400 Original-Received: from conversion-daemon.i_mtaout3.012.net.il by i_mtaout3.012.net.il (HyperSendmail v2004.12) id <0KM400E00BQBMR00@i_mtaout3.012.net.il> for emacs-devel@gnu.org; Wed, 01 Jul 2009 22:36:30 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.228.13.73]) by i_mtaout3.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KM4001DWBSTU2S0@i_mtaout3.012.net.il>; Wed, 01 Jul 2009 22:36:30 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:111873 Archived-At: > Date: Wed, 1 Jul 2009 21:25:47 +0200 > From: Lennart Borgman > Cc: emacs-devel@gnu.org, alexott@gmail.com, eric@siege-engine.com > > On Wed, Jul 1, 2009 at 9:20 PM, Eli Zaretskii wrote: > >> Date: Wed, 1 Jul 2009 21:06:17 +0200 > >> From: Lennart Borgman > >> Cc: Alex Ott , "Eric M. Ludlam" > >> > >> CEDET does the call above in semantic-gcc-setup. Doing that from the > >> command line using MingGW on w32 fails. > >> > >> It fails because /dev/null is not valid on w32. Shouldn't it be NUL > >> there? > > > > Yes. > > > >> However looking through Emacs lisp sources I see several uses > >> of just /dev/null. > > > > They are all bugs, unless they are intended to work only with Unix and > > GNU systems. > > Thanks Eli. Should we file a bug report for this so it perhaps will > not be forgotten? Yes, please. > >> Wouldn't it be better to use some defsubst for this? > > > > We already have one: the Lisp variable null-device holds the name of > > the device appropriate for the underlying OS. > > I think Info would be glad to know. Somewhere in "Operating System Interface"? I guess so. "Operating System Environment" sounds like a good place. shell-file-name and shell-command-switch should probably be documented as well.