From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: [Windows] Emacs crashes due to faulty init.el. Exit status is still zero on windows Date: Wed, 09 Jan 2019 17:59:32 +0200 Message-ID: <83ef9lizyz.fsf@gnu.org> References: NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1547049509 17615 195.159.176.226 (9 Jan 2019 15:58:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 9 Jan 2019 15:58:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 09 16:58:25 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ghGFN-0004U8-11 for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Jan 2019 16:58:25 +0100 Original-Received: from localhost ([127.0.0.1]:51439 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ghGHT-000192-Tj for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Jan 2019 11:00:35 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35489) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ghGGb-0000wo-DN for help-gnu-emacs@gnu.org; Wed, 09 Jan 2019 10:59:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ghGGa-00030e-8y for help-gnu-emacs@gnu.org; Wed, 09 Jan 2019 10:59:41 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42659) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ghGGa-00030a-4q for help-gnu-emacs@gnu.org; Wed, 09 Jan 2019 10:59:40 -0500 Original-Received: from [176.228.60.248] (port=4950 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ghGGZ-0004cr-Ns for help-gnu-emacs@gnu.org; Wed, 09 Jan 2019 10:59:40 -0500 In-reply-to: (message from Manas Jayanth on Wed, 9 Jan 2019 13:30:12 +0530) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:470:142:3::e X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:119102 Archived-At: > From: Manas Jayanth > Date: Wed, 9 Jan 2019 13:30:12 +0530 > > I use `emacs --script init.el` to make sure my configs run on all three > platforms. I noticed on Windows the emacs process never returns non zero. > Am I doing something wrong? Or is this a known issue? I can definitely cause "emacs --script" exit with non-zero status on MS-Windows, e.g. by calling 'error' in the script. So please tell more detail, and perhaps show a minimal reproducer for this issue. Also, how did you test the exit status? In general, I see no reason that Emacs on Windows would fail reporting a non-zero exit status when it exits with failure: it uses the same code as on other platforms.