From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Daniel_Mart=C3=ADn?= Newsgroups: gmane.emacs.help Subject: Re: Prompt issue with tramp shell Date: Sun, 18 Oct 2020 14:09:55 +0200 Message-ID: References: <20201016144103.r3npeqap7uo63ney.ref@Ergus> <20201016144103.r3npeqap7uo63ney@Ergus> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39901"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin) Cc: help-gnu-emacs@gnu.org To: Ergus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 18 14:11:15 2020 Return-path: Envelope-to: geh-help-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 1kU7Wt-000AI3-0D for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 18 Oct 2020 14:11:15 +0200 Original-Received: from localhost ([::1]:54810 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kU7Ws-0001in-34 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 18 Oct 2020 08:11:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48104) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kU7WJ-0001iY-Qp for help-gnu-emacs@gnu.org; Sun, 18 Oct 2020 08:10:42 -0400 Original-Received: from sonic311-30.consmr.mail.ir2.yahoo.com ([77.238.176.162]:41608) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kU7WA-0004Bo-Te for help-gnu-emacs@gnu.org; Sun, 18 Oct 2020 08:10:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1603023024; bh=T0IY3cXbIydaDZFSH42HvtnWwEMvkx6Qy0FoMM9WbSc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject; b=FZII7CtiuMmCxGgDNS5WHBHPFmHT7d7NEV/pQQtW7R5KP74kmNKDPhAlQpmaRR1SEgdJ6qWgLqFEcGq+CFavXFzAlv9AGA90zqmRnrIpJVT7FbY+UX7al0jIPupylMj1ndPxP/+lc/czWXqzpLcW6pa6z6O0nwB6Dzxsh29eVqcpCCZ4eenf3pTPWojZjrfT9jFoV5+wR47eJjvWkkC/kI081th5qZp0olwbe/i5GtKiPfnN9mnQXkWhzPjhsIxBbXftNMaOcg68wZadpYFAIJF5bI92rJmSu/fi1zUZtokN/5aPKgAzBqiO4seW8aTMkcY6jvbXHgCWdIHOT42/SQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1603023024; bh=1NAFuvEuAoxS2E8w6JeF7JTOj/GplU58Tfu6opgpbTw=; h=From:To:Subject:Date; b=pDJYL/+Npn+xH1gd4/OYeadhzZcz2aIYV+KB2UKSVnKa2veodSPJpbOLiCiRggbiKw0ECPRPXWMXD4MtBPBrnYrzMukvBtiyoqsZPn5RkgvX+liL6KiHEAeB/2umI77Q9A/U7llZYzjki7uAxzevlKnvwA83IYaVRXFfBcdZtVhkKX+rXp+hwN8SIpfdZC7tk6T+obVCbZgp1T9jQc55TG+UqFOW5g9q13wtvyaMeOfS3voNax8cEwk01jDJjhQssu/7YwBWNEBfVasWLbEn7XMl2tXIOOtkM2LHUupmox5muJeOo+5Fh+Go+DH2K5NLD3Vp8GkHdmbwxnliEJo12A== X-YMail-OSG: z0WJib8VM1l29s.dWeVaKTONhisnp5PQYcnsyS.xfpX952OLV9NHF7DMvtkCmJm 83zOTZR0DXh0v05s4Kv2xPJ7Ts072_9k3KDpG6Jt4bPO51pZFOFCxhGVBTr9nDHS0hxi.fA.0aKK qgHl7J5KIqWYZ90OXe1nqF_YFBhg9q6D2ypcYnpM_KiDC37Q8Pl1mGngSV89cpbzhRKUilUQeRXY tgA.bVVgUmERlSFVwsml.xsi_S6.kmQdhEGkWJLtST2_nOBpfAgRU.K4q7fVROzyI8MNFhCNNqN4 TNbf130h_zCs.KQxx6uEAicSaoCdD6s_0guIPfgbtcITDh2z1FBOcvaBzRDxG_w2tPTGvHAjkUJN hnMu6ZHdjnnUPsw4Yj_qC4pfKZRqpHlLCh2BTsu_xRvL54UvcZR17.Pj68.5j8Tz3X9eQy23wHn3 fr83kxLc23PiAVkWXlX4_O4N9mUuNkD8WVBQrGrVN5TJ0XRsxRx4KYebA2y0EdAtVv5HAUoZ7_vr xv0fVwj4_gVFaNnDbNvm1xV0BCRopRmeglkaIZ7qqM4GFT7QCh9zaHOmcLaoGWTSPC67BvfyvqWI 78QToRhybVM06_Qg5qrTg5Hp.8_vqhlr_nurXaw96GR5mrKDzzqgJbL56DJ869eDGd.iNqqEETfX 2KCks06EPehufm5OPLwCd6EPDcO3WRWf4aXbqYkt_tP3tVCo89TDBqJVt3nLSGC.Oh65rLKFXOJR sDwi2u5yzxgTT3V.s9uRKwSvIB6WodwnF0Jy0LxJwn8nZOW2ZU9mXPzNhHrmmV_sZ9drRbVOK0Rh MCFw.ANxk3Q11zLy9gGmDovIHKplRsYWKmWGsT9Uqz Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ir2.yahoo.com with HTTP; Sun, 18 Oct 2020 12:10:24 +0000 Original-Received: by smtp417.mail.ne1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 844c7e98d1d67706deccf64b8cab464c; Sun, 18 Oct 2020 12:10:07 +0000 (UTC) In-Reply-To: <20201016144103.r3npeqap7uo63ney@Ergus> (Ergus's message of "Fri, 16 Oct 2020 16:41:03 +0200") X-Mailer: WebService/1.1.16868 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Apache-HttpAsyncClient/4.1.4 (Java/11.0.7) Received-SPF: pass client-ip=77.238.176.162; envelope-from=mardani29@yahoo.es; helo=sonic311-30.consmr.mail.ir2.yahoo.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/18 08:10:24 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:124537 Archived-At: Ergus writes: > Hi: > > I am trying to use a shell with tramp > > C-x C-f ssh:/.... > M-x shell > > then I select bash. > > and I have a problem that the prompt is shown twice like this: > > []0; user@host:/home/user ^G[user@host /home/user]$ > > I am not sure if I need an extra config on emacs or in bash? I can't reproduce the issue. Check if you have a ~/.emacs_BASH or ~/.emacs.d/init_BASH.sh that may be configuring the prompt incorrectly. You could also try to run /bin/sh instead; that will ignore any ~/.bashrc from the remote system.