From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Davis Herring" Newsgroups: gmane.emacs.devel Subject: Re: Process exit status on different platforms Date: Tue, 23 Feb 2010 12:18:46 -0800 (PST) Message-ID: <53744.130.55.118.19.1266956326.squirrel@webmail.lanl.gov> References: Reply-To: herring@lanl.gov NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1266958143 31698 80.91.229.12 (23 Feb 2010 20:49:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 23 Feb 2010 20:49:03 +0000 (UTC) Cc: Emacs-Devel devel To: "Lennart Borgman" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 23 21:48:59 2010 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.69) (envelope-from ) id 1Nk1gh-0004WC-B6 for ged-emacs-devel@m.gmane.org; Tue, 23 Feb 2010 21:48:59 +0100 Original-Received: from localhost ([127.0.0.1]:38169 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nk1gg-0003Xb-0O for ged-emacs-devel@m.gmane.org; Tue, 23 Feb 2010 15:48:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nk1gL-0003R1-6y for emacs-devel@gnu.org; Tue, 23 Feb 2010 15:48:37 -0500 Original-Received: from [140.186.70.92] (port=50574 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nk1gK-0003Ql-GQ for emacs-devel@gnu.org; Tue, 23 Feb 2010 15:48:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nk1gJ-0000NP-FA for emacs-devel@gnu.org; Tue, 23 Feb 2010 15:48:36 -0500 Original-Received: from proofpoint2.lanl.gov ([204.121.3.26]:36822) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nk1gJ-0000ND-53 for emacs-devel@gnu.org; Tue, 23 Feb 2010 15:48:35 -0500 Original-Received: from mailrelay1.lanl.gov (mailrelay1.lanl.gov [128.165.4.101]) by proofpoint2.lanl.gov (8.14.3/8.14.3) with ESMTP id o1NKHsxr016771; Tue, 23 Feb 2010 13:18:47 -0700 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mailrelay1.lanl.gov (Postfix) with ESMTP id D69E2242335; Tue, 23 Feb 2010 13:18:46 -0700 (MST) X-NIE-2-Virus-Scanner: amavisd-new at mailrelay1.lanl.gov Original-Received: from webmail1.lanl.gov (webmail1.lanl.gov [128.165.4.106]) by mailrelay1.lanl.gov (Postfix) with ESMTP id C3CCF242330; Tue, 23 Feb 2010 13:18:46 -0700 (MST) Original-Received: by webmail1.lanl.gov (Postfix, from userid 48) id C1B891CA8173; Tue, 23 Feb 2010 13:18:46 -0700 (MST) Original-Received: from 130.55.118.19 (SquirrelMail authenticated user 196434) by webmail.lanl.gov with HTTP; Tue, 23 Feb 2010 12:18:46 -0800 (PST) In-Reply-To: User-Agent: SquirrelMail/1.4.8-5.7.lanl7 X-Priority: 3 (Normal) Importance: Normal X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2010-02-23_09:2010-02-06, 2010-02-23, 2010-02-23 signatures=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:121313 Archived-At: [Sorry this reply is so much delayed; perhaps it will nevertheless be useful.] > Are there any variable that could be used to check if call-process > exited with success status? I don't know of any. > Is not this return value platform dependent? Not much. VMS is the only system I know of that doesn't use the "0 means success, and everything else means some kind of failure but there's little to no convention" convention. I think it uses 1 for success and 44 for catastrophic failure (with other values for minor problems), but that's just from a very little searching. (It's worth noting, as the glibc manual says, that 1 means "successfully found differences" in diff and the like, and it means merely "no matches" in grep and the like: http://www.gnu.org/software/libc/manual/html_node/Exit-Status.html) Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.