unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: David Wen Riccardi-Zhu <dwrz@dwrz.net>,
	Jim Porter <jporterbugs@gmail.com>
Cc: 75182@debbugs.gnu.org
Subject: bug#75182: 29.4; eshell ls exit code
Date: Sun, 05 Jan 2025 17:20:03 +0200	[thread overview]
Message-ID: <86y0zp70f0.fsf@gnu.org> (raw)
In-Reply-To: <87frm6y2x4.fsf@main.dwrz.net> (message from David Wen Riccardi-Zhu on Sun, 29 Dec 2024 14:33:27 +0000)

> From: David Wen Riccardi-Zhu <dwrz@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.





  reply	other threads:[~2025-01-05 15:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-29 14:33 bug#75182: 29.4; eshell ls exit code David Wen Riccardi-Zhu
2025-01-05 15:20 ` Eli Zaretskii [this message]
2025-01-11 19:52   ` Jim Porter
2025-01-11 20:00     ` Jim Porter
2025-01-12  5:33     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86y0zp70f0.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=75182@debbugs.gnu.org \
    --cc=dwrz@dwrz.net \
    --cc=jporterbugs@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).