From unknown Sat Aug 16 22:00:13 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#5334 <5334@debbugs.gnu.org> To: bug#5334 <5334@debbugs.gnu.org> Subject: Status: 23.1.91; Term mode prints "0;user@host:~" before each prompt of an interactive SSH session Reply-To: bug#5334 <5334@debbugs.gnu.org> Date: Sun, 17 Aug 2025 05:00:13 +0000 retitle 5334 23.1.91; Term mode prints "0;user@host:~" before each prompt o= f an interactive SSH session reassign 5334 emacs submitter 5334 Scott Bell severity 5334 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 07 14:08:34 2010 Received: (at submit) by debbugs.gnu.org; 7 Jan 2010 19:08:34 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NSxik-0000ro-B6 for submit@debbugs.gnu.org; Thu, 07 Jan 2010 14:08:34 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NSxii-0000rc-Dv for submit@debbugs.gnu.org; Thu, 07 Jan 2010 14:08:32 -0500 Received: from mx10.gnu.org ([199.232.76.166]:58758) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NSxie-0000Ez-3f for emacs-pretest-bug@gnu.org; Thu, 07 Jan 2010 14:08:28 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NSxic-0004FL-R3 for emacs-pretest-bug@gnu.org; Thu, 07 Jan 2010 14:08:27 -0500 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.0 Received: from mx20.gnu.org ([199.232.41.8]:20804) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NSxic-0004EF-FE for emacs-pretest-bug@gnu.org; Thu, 07 Jan 2010 14:08:26 -0500 Received: from asmtpout028.mac.com ([17.148.16.103]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NSxia-0008VA-AU for emacs-pretest-bug@gnu.org; Thu, 07 Jan 2010 14:08:24 -0500 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii Received: from [192.168.1.101] ([70.72.209.234]) by asmtp028.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KVW002DH55AX810@asmtp028.mac.com> for emacs-pretest-bug@gnu.org; Thu, 07 Jan 2010 11:08:00 -0800 (PST) From: Scott Bell Subject: 23.1.91; Term mode prints "0;user@host:~" before each prompt of an interactive SSH session Date: Thu, 07 Jan 2010 12:07:57 -0700 Message-id: <1D8FD52B-3B56-49A2-9818-75E7BAC8832D@me.com> To: emacs-pretest-bug@gnu.org X-Mailer: Apple Mail (2.1077) X-detected-operating-system: by mx20.gnu.org: Solaris 10 (1203?) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-Spam-Score: -5.6 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.7 (-----) Under GNU Emacs 23.1.91.1 (x86_64-apple-darwin10.2.0, NS apple-appkit-1038.25), Mac OS X 10.6.2, Term mode prints the following prompt during an interactive SSH session ('ssh host'): 0;user@host:~(host:~)$ when PS1 is set to '(\h:\W)\$ ' on the remote host. The string '0;user@host:~' is not displayed when using another terminal emulator. From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 07 16:37:44 2010 Received: (at 5334) by debbugs.gnu.org; 7 Jan 2010 21:37:44 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NT035-0002FC-W6 for submit@debbugs.gnu.org; Thu, 07 Jan 2010 16:37:44 -0500 Received: from paul-mcgann-v0.ics.uci.edu ([128.195.1.147]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NT034-0002F7-EI for 5334@debbugs.gnu.org; Thu, 07 Jan 2010 16:37:43 -0500 Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by paul-mcgann-v0.ics.uci.edu (8.13.8/8.13.8) with ESMTP id o07LbU8B030626 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 7 Jan 2010 13:37:30 -0800 Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id o07LbUmu001273; Thu, 7 Jan 2010 13:37:30 -0800 (PST) Date: Thu, 7 Jan 2010 13:37:30 -0800 (PST) Message-Id: <201001072137.o07LbUmu001273@godzilla.ics.uci.edu> From: Dan Nicolaescu To: Scott Bell Subject: Re: bug#5334: 23.1.91; Term mode prints "0; user@host:~" before each prompt of an interactive SSH session References: <1D8FD52B-3B56-49A2-9818-75E7BAC8832D@me.com> X-Debbugs-No-Ack: yes In-Reply-To: <1D8FD52B-3B56-49A2-9818-75E7BAC8832D@me.com> (Scott Bell's message of "Thu, 07 Jan 2010 12:07:57 -0700") Lines: 16 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please send mail to helpdesk@ics.uci.edu or more information X-ICS-MailScanner-ID: o07LbU8B030626 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-Spam-Status: No X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: 5334 Cc: 5334@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) Scott Bell writes: > Under GNU Emacs 23.1.91.1 (x86_64-apple-darwin10.2.0, > NS apple-appkit-1038.25), Mac OS X 10.6.2, Term mode > prints the following prompt during an interactive SSH > session ('ssh host'): > > 0;user@host:~(host:~)$ > > when PS1 is set to '(\h:\W)\$ ' on the remote host. > > The string '0;user@host:~' is not displayed when using > another terminal emulator. You probably set PROMPT_COMMAND to something that term.el does not understand. From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 08 12:04:28 2010 Received: (at 5334) by debbugs.gnu.org; 8 Jan 2010 17:04:28 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTIGC-0004eU-4r for submit@debbugs.gnu.org; Fri, 08 Jan 2010 12:04:28 -0500 Received: from asmtpout030.mac.com ([17.148.16.105]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTIG9-0004eO-Ve for 5334@debbugs.gnu.org; Fri, 08 Jan 2010 12:04:26 -0500 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii Received: from [192.168.1.101] ([70.72.209.234]) by asmtp030.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KVX00AI4U2I3A40@asmtp030.mac.com> for 5334@debbugs.gnu.org; Fri, 08 Jan 2010 09:03:55 -0800 (PST) Subject: Re: bug#5334: 23.1.91; Term mode prints "0; user@host:~" before each prompt of an interactive SSH session From: Scott Bell In-reply-to: <201001072137.o07LbUmu001273@godzilla.ics.uci.edu> Date: Fri, 08 Jan 2010 10:03:50 -0700 Message-id: <40353F54-9D9C-4922-8BDA-B54E3D7ED5BB@me.com> References: <1D8FD52B-3B56-49A2-9818-75E7BAC8832D@me.com> <201001072137.o07LbUmu001273@godzilla.ics.uci.edu> To: 5334@debbugs.gnu.org X-Mailer: Apple Mail (2.1077) X-Spam-Score: -4.5 (----) X-Debbugs-Envelope-To: 5334 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.4 (----) On 2010-01-07, at 2:37 PM, Dan Nicolaescu wrote: > Scott Bell writes: > >> Under GNU Emacs 23.1.91.1 (x86_64-apple-darwin10.2.0, >> NS apple-appkit-1038.25), Mac OS X 10.6.2, Term mode >> prints the following prompt during an interactive SSH >> session ('ssh host'): >> >> 0;user@host:~(host:~)$ >> >> when PS1 is set to '(\h:\W)\$ ' on the remote host. >> >> The string '0;user@host:~' is not displayed when using >> another terminal emulator. > > You probably set PROMPT_COMMAND to something that term.el does not > understand. That's correct. It looks like PROMPT_COMMAND on the remote machine is trying to set the title string. Should term.el support this escape sequence? If not, should it recognize it but take no action (and also not print undesired output)? This seems like a fairly common feature, but I could be wrong. From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 08 14:13:37 2010 Received: (at 5334) by debbugs.gnu.org; 8 Jan 2010 19:13:37 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTKHB-0005fv-Br for submit@debbugs.gnu.org; Fri, 08 Jan 2010 14:13:37 -0500 Received: from paul-mcgann-v0.ics.uci.edu ([128.195.1.147]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTKH8-0005fl-0M for 5334@debbugs.gnu.org; Fri, 08 Jan 2010 14:13:35 -0500 Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by paul-mcgann-v0.ics.uci.edu (8.13.8/8.13.8) with ESMTP id o08JDNNR019462 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 8 Jan 2010 11:13:23 -0800 Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id o08JDNKn018023; Fri, 8 Jan 2010 11:13:23 -0800 (PST) Date: Fri, 8 Jan 2010 11:13:23 -0800 (PST) Message-Id: <201001081913.o08JDNKn018023@godzilla.ics.uci.edu> From: Dan Nicolaescu To: Scott Bell Subject: Re: bug#5334: 23.1.91; Term mode prints "0; user@host:~" before each prompt of an interactive SSH session References: <1D8FD52B-3B56-49A2-9818-75E7BAC8832D@me.com> <201001072137.o07LbUmu001273@godzilla.ics.uci.edu> <40353F54-9D9C-4922-8BDA-B54E3D7ED5BB@me.com> X-Debbugs-No-Ack: yes In-Reply-To: <40353F54-9D9C-4922-8BDA-B54E3D7ED5BB@me.com> (Scott Bell's message of "Fri, 08 Jan 2010 10:03:50 -0700") Lines: 38 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please send mail to helpdesk@ics.uci.edu or more information X-ICS-MailScanner-ID: o08JDNNR019462 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-Spam-Status: No X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: 5334 Cc: 5334@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) Scott Bell writes: > On 2010-01-07, at 2:37 PM, Dan Nicolaescu wrote: > > > Scott Bell writes: > > > >> Under GNU Emacs 23.1.91.1 (x86_64-apple-darwin10.2.0, > >> NS apple-appkit-1038.25), Mac OS X 10.6.2, Term mode > >> prints the following prompt during an interactive SSH > >> session ('ssh host'): > >> > >> 0;user@host:~(host:~)$ > >> > >> when PS1 is set to '(\h:\W)\$ ' on the remote host. > >> > >> The string '0;user@host:~' is not displayed when using > >> another terminal emulator. > > > > You probably set PROMPT_COMMAND to something that term.el does not > > understand. > > That's correct. It looks like PROMPT_COMMAND on the > remote machine is trying to set the title string. Does the PROMPT_COMMAND setting come from your .bashrc? If yes, then: 1. never use it it's overkill, set PS1 to do the same thing instead. 2. when setting it, you need to set it conditionally, only when TERM==xterm > Should term.el support this escape sequence? If not, > should it recognize it but take no action (and also > not print undesired output)? This seems like a fairly > common feature, but I could be wrong. That sequence should only be used for xterm. It's been reported that this used to work in term.el in emacs-23.1, no idea why it does not work now. I don't have any plans to figure out why it does not work anymore, or to do anything about it. From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 08 14:25:37 2010 Received: (at 5334) by debbugs.gnu.org; 8 Jan 2010 19:25:37 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTKSm-0005sD-Uy for submit@debbugs.gnu.org; Fri, 08 Jan 2010 14:25:37 -0500 Received: from asmtpout030.mac.com ([17.148.16.105]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTKSl-0005s8-RT for 5334@debbugs.gnu.org; Fri, 08 Jan 2010 14:25:36 -0500 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii Received: from [192.168.1.101] ([70.72.209.234]) by asmtp030.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KVY00FV70M5TO30@asmtp030.mac.com> for 5334@debbugs.gnu.org; Fri, 08 Jan 2010 11:25:22 -0800 (PST) Subject: Re: bug#5334: 23.1.91; Term mode prints "0; user@host:~" before each prompt of an interactive SSH session From: Scott Bell In-reply-to: <201001081913.o08JDNKn018023@godzilla.ics.uci.edu> Date: Fri, 08 Jan 2010 12:25:17 -0700 Message-id: <9C978477-0E90-4590-9D27-352F69750FA3@me.com> References: <1D8FD52B-3B56-49A2-9818-75E7BAC8832D@me.com> <201001072137.o07LbUmu001273@godzilla.ics.uci.edu> <40353F54-9D9C-4922-8BDA-B54E3D7ED5BB@me.com> <201001081913.o08JDNKn018023@godzilla.ics.uci.edu> To: 5334@debbugs.gnu.org X-Mailer: Apple Mail (2.1077) X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: 5334 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.1 (----) On 2010-01-08, at 12:13 PM, Dan Nicolaescu wrote: > Scott Bell writes: > >> On 2010-01-07, at 2:37 PM, Dan Nicolaescu wrote: >> >>> Scott Bell writes: >>> >>>> Under GNU Emacs 23.1.91.1 (x86_64-apple-darwin10.2.0, >>>> NS apple-appkit-1038.25), Mac OS X 10.6.2, Term mode >>>> prints the following prompt during an interactive SSH >>>> session ('ssh host'): >>>> >>>> 0;user@host:~(host:~)$ >>>> >>>> when PS1 is set to '(\h:\W)\$ ' on the remote host. >>>> >>>> The string '0;user@host:~' is not displayed when using >>>> another terminal emulator. >>> >>> You probably set PROMPT_COMMAND to something that term.el does not >>> understand. >> >> That's correct. It looks like PROMPT_COMMAND on the >> remote machine is trying to set the title string. > > Does the PROMPT_COMMAND setting come from your .bashrc? > If yes, then: > 1. never use it it's overkill, set PS1 to do the same thing instead. > 2. when setting it, you need to set it conditionally, only when TERM==xterm It comes from the system bash initialization, I've now added PROMPT_COMMAND='' in my .bashrc on the remote machine. >> Should term.el support this escape sequence? If not, >> should it recognize it but take no action (and also >> not print undesired output)? This seems like a fairly >> common feature, but I could be wrong. > > That sequence should only be used for xterm. > It's been reported that this used to work in term.el in emacs-23.1, no > idea why it does not work now. I don't have any plans to figure out why > it does not work anymore, or to do anything about it. That's certainly fine by me. From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 08 14:37:41 2010 Received: (at control) by debbugs.gnu.org; 8 Jan 2010 19:37:41 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTKeS-0005z9-Du for submit@debbugs.gnu.org; Fri, 08 Jan 2010 14:37:40 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTKeQ-0005z1-Tt for control@debbugs.gnu.org; Fri, 08 Jan 2010 14:37:39 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1NTKeM-0002nv-ME; Fri, 08 Jan 2010 14:37:34 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19271.35198.669302.488246@fencepost.gnu.org> Date: Fri, 8 Jan 2010 14:37:34 -0500 From: Glenn Morris To: control Subject: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: green X-Ran: jI+UyJ[yHPeUC/{HicD`e5Czv9twIER.^1,B{4e,Z:3h:"y)![+}UFAwtLEcBKsuk"O|1A X-Debbugs-No-Ack: yes X-Spam-Score: -4.9 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.9 (----) merge 5255 5334 reassign 5337 emacs,w32 From unknown Sat Aug 16 22:00:13 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 10 Feb 2010 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long 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