From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Weird behavior of kill-emacs Date: Wed, 18 Feb 2015 21:25:42 +0200 Message-ID: <83wq3f3tu1.fsf@gnu.org> References: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1424288596 13502 80.91.229.3 (18 Feb 2015 19:43:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Feb 2015 19:43:16 +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 Feb 18 20:43:08 2015 Return-path: Envelope-to: geh-help-gnu-emacs@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 1YOAWX-0005el-Cs for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Feb 2015 20:43:05 +0100 Original-Received: from localhost ([::1]:52619 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOAWW-0005ZI-MC for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Feb 2015 14:43:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOAFa-0001zb-IN for help-gnu-emacs@gnu.org; Wed, 18 Feb 2015 14:25:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YOAFX-00086o-A9 for help-gnu-emacs@gnu.org; Wed, 18 Feb 2015 14:25:34 -0500 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:41301) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOAFX-00086b-2u for help-gnu-emacs@gnu.org; Wed, 18 Feb 2015 14:25:31 -0500 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NJZ00300EYMG900@a-mtaout23.012.net.il> for help-gnu-emacs@gnu.org; Wed, 18 Feb 2015 21:25:30 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NJZ00337FAHG410@a-mtaout23.012.net.il> for help-gnu-emacs@gnu.org; Wed, 18 Feb 2015 21:25:30 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.175 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102795 Archived-At: > From: Philipp Stephani > Date: Wed, 18 Feb 2015 18:58:13 +0000 > > $ emacs -Q -batch -eval '(progn (read) (kill-emacs 37))' < /dev/null ; echo > $? > Lisp expression: Error reading from stdin > 0 > > So Emacs silently succeeds if it hit EOF of stdin, no matter what the exit > code passed to kill-emacs was! I stand corrected: kill-emacs _is_ called. Please report this as a bug.