GNU bug report logs - #75182
29.4; eshell ls exit code

Previous Next

Package: emacs;

Reported by: David Wen Riccardi-Zhu <dwrz <at> dwrz.net>

Date: Sun, 29 Dec 2024 17:15:02 UTC

Severity: wishlist

Found in version 29.4

Done: Jim Porter <jporterbugs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 75182 <at> debbugs.gnu.org (full text, mbox):

From: Jim Porter <jporterbugs <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>, David Wen Riccardi-Zhu <dwrz <at> dwrz.net>
Cc: 75182 <at> debbugs.gnu.org
Subject: Re: bug#75182: 29.4; eshell ls exit code
Date: Sat, 11 Jan 2025 11:52:35 -0800
On 1/5/2025 7:20 AM, Eli Zaretskii wrote:
>> From: David Wen Riccardi-Zhu <dwrz <at> dwrz.net>
>> Date: Sun, 29 Dec 2024 14:33:27 +0000
>>
>> Is it possible to have Emacs eshell/ls return a non-zero exit code for
>> errors? On my system, calling ls .... returns an error code of 2. If I
>> try the same command in eshell, I get similar error text ('No such file
>> or directory'), but the exit code is still 0.
> 
> Jim, can you please look into this?

This ended up being easier than I thought (a one-liner!). Fixed on the 
master branch in aff9261ab2a.

I think we should leave this as-is for the release branch though since 
I'm pretty sure it's been this way for ages, and I don't fully 
understand em-ls.el so there's a small risk I've made a mistake.




This bug report was last modified 132 days ago.

Previous Next


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