[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Weird behavior of kill-emacs
From: |
Andreas Politz |
Subject: |
Re: Weird behavior of kill-emacs |
Date: |
Wed, 18 Feb 2015 21:07:05 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
>> Is there a way to work around this behavior?
>
> Why would you want to?
emacs < /dev/null -Q --batch --eval '(progn (ignore-errors (read)) (kill-emacs
42))'; echo $?
returns with exit code 0, i.e. the argument to kill-emacs is ignored. I
guess the OP reads from stdin until EOF, which implies a fixed exit code
of 0.
-ap