GNU bug report logs - #57854
29.0.50; Different exit code in Emacs and terminal for identical process

Previous Next

Package: emacs;

Reported by: dalanicolai <dalanicolai <at> gmail.com>

Date: Fri, 16 Sep 2022 09:41:02 UTC

Severity: normal

Tags: moreinfo

Found in version 29.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: dalanicolai <dalanicolai <at> gmail.com>
Cc: 57854 <at> debbugs.gnu.org
Subject: bug#57854: 29.0.50; Different exit code in Emacs and terminal for identical process
Date: Sat, 17 Sep 2022 09:05:51 +0300
[Please use "Reply All" to reply, to keep the bug tracker on the CC.]

> From: dalanicolai <dalanicolai <at> gmail.com>
> Date: Fri, 16 Sep 2022 21:20:17 +0200
> 
> The code I was using is `(call-process "pdftocio" nil nil nil buffer-file-name)` (from the buffer visiting the file)

This makes the null device the standard input of the program.  What
happens if you invoke pdftocio from the shell prompt with a similar
redirection:

  $ pdftocio ... < /dev/null

(replace "..." with whatever command-line arguments you need, probably
just the file name).  What exit code does the program return then?




This bug report was last modified 2 years and 244 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.