From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#75182: 29.4; eshell ls exit code Date: Sun, 05 Jan 2025 17:20:03 +0200 Message-ID: <86y0zp70f0.fsf@gnu.org> References: <87frm6y2x4.fsf@main.dwrz.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23653"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 75182@debbugs.gnu.org To: David Wen Riccardi-Zhu , Jim Porter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 05 16:21:11 2025 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tUSRD-00060G-AQ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Jan 2025 16:21:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUSR5-0002NF-Tr; Sun, 05 Jan 2025 10:21:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tUSR4-0002Lg-S6 for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 10:21:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tUSR4-0002ay-A8 for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 10:21:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=h2aNCyuwBUHzJPjcuibDaOLBazLtdI2qtEs0wgm8hco=; b=cNCpO47evhqpPX1iMo0FPw9crtUEoClvPN/4Mj5rqsJn6a+7k2t7PIWqzuiBs1mzEJYdVmBQskeSGZbg6zwUG/6fqAt7ZekZrqtijwlyPhv0wGiYs/VHTz3YF9k+F3GyIYfPPO1KZxBoREK3M+VOciM/y+QWmZqnyMwFFnQ0lY/WRnhpp29xLIr9wplrwiJ0kT2p5rvpOqTdDlxo8p9YJOSgtNVVrxat6D1AvRq1dhgio2om95t2LgyNgfj/fs3eYM9VX5VBRKvaDWCSz7VSWijjhKI9iTZor4KugJHTsbpXtHALl2Zbn9j6L3FH4bMW8ybEAbo2AAlkY6t5XgzL6A==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tUSR4-0000xJ-3p for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 10:21:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Jan 2025 15:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75182 X-GNU-PR-Package: emacs Original-Received: via spool by 75182-submit@debbugs.gnu.org id=B75182.17360904143603 (code B ref 75182); Sun, 05 Jan 2025 15:21:02 +0000 Original-Received: (at 75182) by debbugs.gnu.org; 5 Jan 2025 15:20:14 +0000 Original-Received: from localhost ([127.0.0.1]:34833 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tUSQI-0000w3-4Q for submit@debbugs.gnu.org; Sun, 05 Jan 2025 10:20:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34482) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tUSQF-0000sP-H1 for 75182@debbugs.gnu.org; Sun, 05 Jan 2025 10:20:12 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tUSQA-0002U3-42; Sun, 05 Jan 2025 10:20:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=h2aNCyuwBUHzJPjcuibDaOLBazLtdI2qtEs0wgm8hco=; b=gv94StKU7RlL Vxgnn5xGp2mnuKUGMCStk2SoAfmPI/xHhs1H/REqQXx1Emt0sLP04jkf53kwYK04KLwjcZ0uH4zA8 2jyKywqhKxLfbPaXde+U8SmmScHZiu/AIyafnXsvwUu4n7HrLUOAx2gv2pP2RzcX/5M5/vixwYUhs W1TC6YFgMe/Blf4FSV/p+RrgVKFzo9/qD8T7BYyKhlHyr5/Y3hMb/JoDka9KE9AXO44CH8z/b2iia SKTTuQUHZzSiv1NZ8BQENKMmMzIj15cgifYqvRvCdzDfwITil7wO1E0A5dfgwAywcrp8+LMhryvu8 C5CxLTEHDR0SLBrW55ps8Q==; In-Reply-To: <87frm6y2x4.fsf@main.dwrz.net> (message from David Wen Riccardi-Zhu on Sun, 29 Dec 2024 14:33:27 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:298571 Archived-At: > From: David Wen Riccardi-Zhu > 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.