GNU bug report logs -
#57854
29.0.50; Different exit code in Emacs and terminal for identical process
Previous Next
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: dalanicolai <dalanicolai <at> gmail.com>
> Date: Fri, 16 Sep 2022 11:39:25 +0200
>
> Execute in the terminal the command pdftocio (see
> https://github.com/Krasjet/pdf.tocgen#pdftocio, the command is
> easily available via PyPI) on a pdf file that does
> not contain a Table of Contents. The command produces an error and
> subsequently executing `echo $?` shows exit code 1.
>
> Subsequently, executing the same command from Emacs on the same file,
> then `call-process` returns a 0, and indeed `shell-command-to-string`
> produces an empty string. However, I would expect an error like in the
> terminal (with call-process returning exit code 1).
Please show the Lisp code you used to invoke call-process in this
case.
Thanks.
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.