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#65604: [PATCH] Display the exit code if the last command failed in Eshell Date: Wed, 30 Aug 2023 19:58:27 +0300 Message-ID: <83sf80fowc.fsf@gnu.org> References: <87cyz5wjtm.fsf@mssdvd.com> <05108d35-d095-c975-78b8-6b00fc7e6a08@gmail.com> <87o7iolg6o.fsf@mssdvd.com> <83v8cwfphy.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18780"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65604@debbugs.gnu.org, jporterbugs@gmail.com, dm@mssdvd.com To: me@eshelyaron.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 30 19:00:05 2023 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 1qbOY0-0004du-VH for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Aug 2023 19:00:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qbOXs-0004I6-K4; Wed, 30 Aug 2023 12:59:56 -0400 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 1qbOXr-0004GS-Ef for bug-gnu-emacs@gnu.org; Wed, 30 Aug 2023 12:59:55 -0400 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 1qbOXr-0005qu-6G for bug-gnu-emacs@gnu.org; Wed, 30 Aug 2023 12:59:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qbOXy-00083t-Q1 for bug-gnu-emacs@gnu.org; Wed, 30 Aug 2023 13:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Aug 2023 17:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65604 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 65604-submit@debbugs.gnu.org id=B65604.169341474430894 (code B ref 65604); Wed, 30 Aug 2023 17:00:02 +0000 Original-Received: (at 65604) by debbugs.gnu.org; 30 Aug 2023 16:59:04 +0000 Original-Received: from localhost ([127.0.0.1]:53889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qbOX2-00082E-17 for submit@debbugs.gnu.org; Wed, 30 Aug 2023 12:59:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41110) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qbOWz-00081h-GV for 65604@debbugs.gnu.org; Wed, 30 Aug 2023 12:59:02 -0400 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 1qbOWl-0005fR-1X; Wed, 30 Aug 2023 12:58:47 -0400 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=jR7mwJH9yKomln6YZaerh5wzEfy6Ndag4pFSSEA0HT0=; b=QaNGRuTHY+TE HlC8isn+AXu+JvqF+/p3ljj4Z18NEs0Bu0CzhceoFZO/3DIOyGYANhQVn4qkTfjpyGKqm05P1nkUA PAf2UHBvTeBpIs9AS7WxyFwC0Aqae8WGwp1JQdfDR6/LVvd5G/jH5vvDEPHZFJ9gIDndn++pw7/d+ IV1DqndjhnIuoqI7ZpXuHBnSnj1VQ5nQIYRIGwpoT4QEAz+gvQ+rDIhu5wH81SquLu7YkdXkuqc+J oFd9vyfQf2MIIebbJQJJYG82ZSzSGExarM1wPBc/STZQHXHE4C8d/R2iJmBjyWV6AUKKWEYzsNwQx ZmrQxKID1+LlaRmAtRejbw==; In-Reply-To: <83v8cwfphy.fsf@gnu.org> (message from Eli Zaretskii on Wed, 30 Aug 2023 19:45:29 +0300) 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:268735 Archived-At: > Cc: 65604@debbugs.gnu.org, jporterbugs@gmail.com, dm@mssdvd.com > Date: Wed, 30 Aug 2023 19:45:29 +0300 > From: Eli Zaretskii > > Always try to avoid possible confusion due to wrong attribution (does > "it's" refer to the mode line or to the last command or to the exit > code?). So: > > If a command exits abnormally, Eshel now displays its exit code on > the mode line. Even better: If a command exits abnormally, Eshel now displays the command's exit code on the mode line.