From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#57854: 29.0.50; Different exit code in Emacs and terminal for identical process Date: Sat, 17 Sep 2022 16:56:22 +0300 Message-ID: <83illm14vt.fsf@gnu.org> References: <83a66z4m9o.fsf@gnu.org> <83fsgq3517.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28633"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57854@debbugs.gnu.org To: dalanicolai Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 17 15:57:15 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oZYJm-0007HW-2W for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Sep 2022 15:57:14 +0200 Original-Received: from localhost ([::1]:57124 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZYJk-0002Sn-Sk for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Sep 2022 09:57:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33186) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZYJb-0002Sf-0L for bug-gnu-emacs@gnu.org; Sat, 17 Sep 2022 09:57:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47816) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oZYJa-0005pQ-OO for bug-gnu-emacs@gnu.org; Sat, 17 Sep 2022 09:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oZYJa-0008T0-J3 for bug-gnu-emacs@gnu.org; Sat, 17 Sep 2022 09:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Sep 2022 13:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57854 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 57854-submit@debbugs.gnu.org id=B57854.166342299032508 (code B ref 57854); Sat, 17 Sep 2022 13:57:02 +0000 Original-Received: (at 57854) by debbugs.gnu.org; 17 Sep 2022 13:56:30 +0000 Original-Received: from localhost ([127.0.0.1]:46892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZYJ4-0008SG-6M for submit@debbugs.gnu.org; Sat, 17 Sep 2022 09:56:30 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44972) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZYJ1-0008S9-R0 for 57854@debbugs.gnu.org; Sat, 17 Sep 2022 09:56:28 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50380) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZYIw-0005mf-LC; Sat, 17 Sep 2022 09:56:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=ZSwvfH7ufXKsama3Conr7Xr2K1wcqETDmIrTIte56/Y=; b=MIBbQtrgYs11AEuWUkJi IxHcJgGBzT9jvWDKY6Bj0tp6f4GuzOQCkhzfQ/fRjH4y0g3XLK6/NPFFu6a19JfweDs96O0y92pRk s31LM2MHisoLb4rRhhaQAmd0UwmQRrBoBVu0kTficpfTpvlP8MveglJQnl2dz9SVkvmqoLnGGL54H A/KQDue4Y+sQrifqLaX2LetJzu/AHxiB2BGRRWpBzIjkqnMeeU9tKNdedLiQLfQtEuhTLD+3j/5iU JK15R//rKX+xyN/R+HREdh3TIhiddPP3Rn6l6ql3Ydt2Lr3GAqOhoeKohS59A+OCLnGHOVPPjEag/ xZT3KfWw0RZPAA==; Original-Received: from [87.69.77.57] (port=4838 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZYIw-0001jM-0U; Sat, 17 Sep 2022 09:56:22 -0400 In-Reply-To: (message from dalanicolai on Sat, 17 Sep 2022 15:37:08 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:242872 Archived-At: > From: dalanicolai > Date: Sat, 17 Sep 2022 15:37:08 +0200 > Cc: 57854@debbugs.gnu.org > > Indeed, when invoking the command from the shell prompt using /dev/null as input > (pdftocio ... < /dev/null), then the command does not return an error (i.e. exit code is 0). > > So, indeed there is a difference between invoking it from Emacs and invoking it from the > shell prompt (without the /dev/null input). This might not be considered a bug, but it is not > trivial to me, that using call-process implies sending the null-device as input. > > Is there a way to call a process from elisp, without sending the input? You could use start-process instead, and then wait for the process to finish. It would complicate the Lisp program, though. > Otherwise, I would > probably change this into a 'documentation bug' report, in the sense that it would be nice > if this detail was mentioned in the docs (I think it is not currently). The doc string of call-process already says that: The program’s input comes from file INFILE (nil means ‘null-device’).