From unknown Fri Jun 20 05:23:16 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#1451 <1451@debbugs.gnu.org> To: bug#1451 <1451@debbugs.gnu.org> Subject: Status: 23.0.60; *shell* swallows meaningful command output lines Reply-To: bug#1451 <1451@debbugs.gnu.org> Date: Fri, 20 Jun 2025 12:23:16 +0000 retitle 1451 23.0.60; *shell* swallows meaningful command output lines reassign 1451 emacs submitter 1451 Tassilo Horn severity 1451 normal thanks From thorn@fastmail.fm Fri Nov 28 05:39:00 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-8.2 required=4.0 tests=AWL,BAYES_00,FOURLA, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 28 Nov 2008 13:39:01 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mASDcuE6030838 for ; Fri, 28 Nov 2008 05:38:57 -0800 Received: from mail.gnu.org ([199.232.76.166]:56452 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1L63YJ-0001IM-GT for emacs-pretest-bug@gnu.org; Fri, 28 Nov 2008 08:38:35 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1L63Yc-0006ml-PC for emacs-pretest-bug@gnu.org; Fri, 28 Nov 2008 08:38:55 -0500 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:51549) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L63Yc-0006mP-GD for emacs-pretest-bug@gnu.org; Fri, 28 Nov 2008 08:38:54 -0500 Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 5ED3D1C2629 for ; Fri, 28 Nov 2008 08:38:51 -0500 (EST) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Fri, 28 Nov 2008 08:38:51 -0500 X-Sasl-enc: sWAVzgbkrrjB4qi2hYxcovKlf1mTK0xgsngiHrlGKLIJ 1227879530 Received: from thinkpad.tsdh.de (p54AF254C.dip0.t-ipconnect.de [84.175.37.76]) by mail.messagingengine.com (Postfix) with ESMTPA id 877E4284CA for ; Fri, 28 Nov 2008 08:38:50 -0500 (EST) From: Tassilo Horn To: emacs-pretest-bug@gnu.org Subject: 23.0.60; *shell* swallows meaningful command output lines Date: Fri, 28 Nov 2008 14:38:47 +0100 Message-ID: <871vwwhswo.fsf@thinkpad.tsdh.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing lis= t. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: When I use `M-x shell' and go to one of my git repositories I get this: --8<---------------cut here---------------start------------->8--- horn@thinkpad:~/repos/org> git status # On branch master no changes added to commit (use "git add" and/or "git commit -a") --8<---------------cut here---------------end--------------->8--- When I do the same in a terminal emulator outside emacs I get: --8<---------------cut here---------------start------------->8--- =E2=95=AD=E2=94=80[horn@thinkpad]=E2=94=80[~/repos/org]=E2=94=80[0]=E2=94= =80[5410] =E2=95=B0=E2=94=80[:)] % git status # On branch master # Changed but not updated: # (use "git add ..." to update what will be committed) # # modified: private.org # modified: remember.org # modified: uni.org # no changes added to commit (use "git add" and/or "git commit -a") --8<---------------cut here---------------end--------------->8--- Clearly that's what I expect from inside emacs, too. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/share/emacs/23.0.60/etc/DEBUG for instructions. In GNU Emacs 23.0.60.1 (x86_64-pc-linux-gnu, GTK+ Version 2.14.4) of 2008-11-27 on thinkpad Windowing system distributor `The X.Org Foundation', version 11.0.10502000 configured using `configure '--prefix=3D/usr' '--host=3Dx86_64-pc-linux-gn= u' '--mandir=3D/usr/share/man' '--infodir=3D/usr/share/info' '--datadir=3D/= usr/share' '--sysconfdir=3D/etc' '--localstatedir=3D/var/lib' '--libdir=3D/= usr/lib64' '--program-suffix=3D-emacs-23' '--infodir=3D/usr/share/info/emac= s-23' '--with-sound' '--with-x' '--with-toolkit-scroll-bars' '--with-gif' '= --with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xpm' '--with-= freetype' '--with-xft' '--with-libotf' '--with-m17n-flt' '--with-x-toolkit= =3Dgtk' '--without-hesiod' '--without-kerberos' '--without-kerberos5' '--wi= th-gpm' '--with-dbus' '--build=3Dx86_64-pc-linux-gnu' 'build_alias=3Dx86_64= -pc-linux-gnu' 'host_alias=3Dx86_64-pc-linux-gnu' 'CFLAGS=3D-g -ggdb -O1 -p= ipe' 'LDFLAGS=3D'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Shell Minor modes in effect: dirtrack-mode: t rcirc-track-minor-mode: t yas/minor-mode: t recentf-mode: t iswitchb-mode: t window-number-meta-mode: t window-number-mode: t savehist-mode: t exec-abbrev-cmd-mode: t show-paren-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-s C-s C-x b C-c C-SPC C-c C-SPC=20 C-c C-SPC C-c C-SPC C-c C-SPC C-c C-SPC C-c g =20 =20 c c c SPC=20 c SPC c SPC c SPC SPC SPC=20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 SPC SPC c c l s C-c g=20 g c =20 c SPC c =20 c l s C-c s c d SPC u n r t r =20 n s v n SPC u p . . =20 c d SPC t r u s v=20 n SPC u p . . . . . . =20 c d SPC r e p o r g g i t SPC=20 s t a t t e s =20 i s e s =20 o s u s p w d =20 l s M-x r e b =20 r e p o Recent messages: No completions of stat Completing file name... No completions of stat No completions of statt Completing file name... No completions of statt error in process filter: dirtrack: Directory=20 # (use "git add ; Sun, 30 Nov 2008 15:41:01 -0800 Received: by cyd.mit.edu (Postfix, from userid 1000) id 8BFD957E09E; Sun, 30 Nov 2008 18:41:00 -0500 (EST) From: Chong Yidong To: Tassilo Horn Cc: 1451@debbugs.gnu.org Subject: Re: 23.0.60; *shell* swallows meaningful command output lines Date: Sun, 30 Nov 2008 18:41:00 -0500 Message-ID: <87r64swzn7.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > When I use `M-x shell' and go to one of my git repositories I get this: > > horn@thinkpad:~/repos/org> git status > # On branch master > no changes added to commit (use "git add" and/or "git commit -a") I can't reproduce this with `emacs -Q': ~/temp/emacs $ git --no-pager status # On branch master # Changed but not updated: # (use "git add ..." to update what will be committed) # # modified: src/ChangeLog # no changes added to commit (use "git add" and/or "git commit -a") (git tries using a pager if the --no-pager option is omitted, which is presumably not what you want in this bug report.) From thorn@fastmail.fm Mon Dec 1 00:00:23 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-10.4 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER,RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1451) by emacsbugs.donarmstrong.com; 1 Dec 2008 08:00:23 +0000 Received: from deliver.uni-koblenz.de (deliver.uni-koblenz.de [141.26.64.15]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB180J3l015431 for <1451@emacsbugs.donarmstrong.com>; Mon, 1 Dec 2008 00:00:21 -0800 Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 964C3789AABD; Mon, 1 Dec 2008 09:00:18 +0100 (CET) Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12122-02-3; Mon, 1 Dec 2008 09:00:15 +0100 (CET) X-CHKRCPT: Envelopesender vrfy thorn@fastmail.fm Received: from thinkpad.tsdh.de (dhcp180.uni-koblenz.de [141.26.71.180]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 09B1F789A707; Mon, 1 Dec 2008 09:00:14 +0100 (CET) From: Tassilo Horn To: 1451@debbugs.gnu.org Cc: Chong Yidong Subject: Re: bug#1451: Acknowledgement (23.0.60; *shell* swallows meaningful command output lines) References: <871vwwhswo.fsf@thinkpad.tsdh.de> Date: Mon, 01 Dec 2008 09:00:14 +0100 In-Reply-To: (Emacs bug Tracking System's message of "Fri, 28 Nov 2008 05:45:03 -0800") Message-ID: <87fxl8pbox.fsf@thinkpad.tsdh.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: amavisd-new at uni-koblenz.de Hi Chong, I cannot reproduce this with emacs -Q, too. But with my "normal" emacs I now get an even worse behavior. --8<---------------cut here---------------start------------->8--- horn@thinkpad:~/repos/org> git status [1] horn@thinkpad:~/repos/org> --8<---------------cut here---------------end--------------->8--- And in *Messages* I get: --8<---------------cut here---------------start------------->8--- error in process filter: dirtrack: Directory # (use "git add 8--- My shell customizations are: --8<---------------cut here---------------start------------->8--- (setq shell-file-name "/bin/zsh" comint-input-ignoredups t comint-prompt-read-only t) ;; Requires ZSH prompt "walters" (setq-default dirtrack-list '("^[^:]+:\\([^>]+\\)>" 1)) (global-set-key (kbd "C-c s") 'shell) (defun th-shell-mode-init () (shell-dirtrack-mode -1) (dirtrack-mode 1) (ansi-color-for-comint-mode-on)) (add-hook 'shell-mode-hook 'th-shell-mode-init) --8<---------------cut here---------------end--------------->8--- It seems dirtrack-mode has some problems with the output. Bye, Tassilo From schwab@suse.de Mon Dec 1 02:22:30 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-11.0 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1451) by emacsbugs.donarmstrong.com; 1 Dec 2008 10:22:30 +0000 Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB1AMQJP020459 for <1451@emacsbugs.donarmstrong.com>; Mon, 1 Dec 2008 02:22:28 -0800 Received: from Relay2.suse.de (relay-ext.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 033FA4644E; Mon, 1 Dec 2008 11:22:24 +0100 (CET) From: Andreas Schwab To: Tassilo Horn Cc: 1451@debbugs.gnu.org, Chong Yidong Subject: Re: bug#1451: Acknowledgement (23.0.60; *shell* swallows meaningful command output lines) References: <871vwwhswo.fsf@thinkpad.tsdh.de> <87fxl8pbox.fsf@thinkpad.tsdh.de> X-Yow: Now KEN is having a MENTAL CRISIS because his "R.V." PAYMENTS are OVER-DUE!! Date: Mon, 01 Dec 2008 11:22:24 +0100 In-Reply-To: <87fxl8pbox.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Mon, 01 Dec 2008 09:00:14 +0100") Message-ID: User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Tassilo Horn writes: > ;; Requires ZSH prompt "walters" > (setq-default dirtrack-list '("^[^:]+:\\([^>]+\\)>" 1)) This can match more than one line, you should probably add \n to the bracket expressions. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From thorn@fastmail.fm Mon Dec 1 02:27:17 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-10.5 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1451) by emacsbugs.donarmstrong.com; 1 Dec 2008 10:27:17 +0000 Received: from deliver.uni-koblenz.de (deliver.uni-koblenz.de [141.26.64.15]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB1AREA0021669 for <1451@emacsbugs.donarmstrong.com>; Mon, 1 Dec 2008 02:27:16 -0800 Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 26CC9789ACF1; Mon, 1 Dec 2008 11:27:14 +0100 (CET) Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07949-03; Mon, 1 Dec 2008 11:27:13 +0100 (CET) X-CHKRCPT: Envelopesender vrfy thorn@fastmail.fm Received: from thinkpad.tsdh.de (dhcp180.uni-koblenz.de [141.26.71.180]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 50B2B7800751; Mon, 1 Dec 2008 11:27:13 +0100 (CET) From: Tassilo Horn To: Andreas Schwab Cc: 1451@debbugs.gnu.org, Chong Yidong Subject: Re: bug#1451: Acknowledgement (23.0.60; *shell* swallows meaningful command output lines) References: <871vwwhswo.fsf@thinkpad.tsdh.de> <87fxl8pbox.fsf@thinkpad.tsdh.de> Date: Mon, 01 Dec 2008 11:27:13 +0100 In-Reply-To: (Andreas Schwab's message of "Mon, 01 Dec 2008 11:22:24 +0100") Message-ID: <87prkcp4vy.fsf@thinkpad.tsdh.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: amavisd-new at uni-koblenz.de Andreas Schwab writes: Hi Andreas, >> ;; Requires ZSH prompt "walters" >> (setq-default dirtrack-list '("^[^:]+:\\([^>]+\\)>" 1)) > > This can match more than one line, you should probably add \n to the > bracket expressions. Ah, thanks a lot. That seems to be the reason for my problem. With your suggestion it works now as expected. Bye, Tassilo From cyd@stupidchicken.com Mon Dec 1 05:04:34 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.0 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at control) by emacsbugs.donarmstrong.com; 1 Dec 2008 13:04:34 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB1D4Vw4028967 for ; Mon, 1 Dec 2008 05:04:32 -0800 Received: by cyd.mit.edu (Postfix, from userid 1000) id 8E25557E09E; Mon, 1 Dec 2008 08:04:32 -0500 (EST) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 1451 Date: Mon, 01 Dec 2008 08:04:32 -0500 Message-ID: <874p1o3v33.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii close 1451 thanks From unknown Fri Jun 20 05:23:16 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Mon, 29 Dec 2008 15:24:03 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator