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


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: David Wen Riccardi-Zhu <dwrz <at> dwrz.net>, Jim Porter <jporterbugs <at> gmail.com>
Cc: 75182 <at> debbugs.gnu.org
Subject: bug#75182: 29.4; eshell ls exit code
Date: Sun, 05 Jan 2025 17:20:03 +0200
> 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.
> 
> I have not checked all built ins, but it appears some of them do support
> non-zero exit codes. For example cd /does-not-exist yields an exit code
> of 1 on both my system and in eshell.

Jim, can you please look into this?

Thanks.




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.