Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15178

Re: The text duplication when you type something too long.

Path csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups gnu.bash.bug
Subject Re: The text duplication when you type something too long.
Date Tue, 16 Jul 2019 09:27:28 -0400
Lines 23
Approved bug-bash@gnu.org
Message-ID <mailman.1500.1563283653.2688.bug-bash@gnu.org> (permalink)
References <CAL3QLfWfV_b6CGd0J_KF4hTmqX1gp0DPnUh0KVOiMrPLXZUpHQ@mail.gmail.com> <20190716132728.GO2450@eeg.ccf.org>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Trace usenet.stanford.edu 1563283654 32039 209.51.188.17 (16 Jul 2019 13:27:34 GMT)
X-Complaints-To action@cs.stanford.edu
Cc bug-bash@gnu.org
To ChanakanZ Tech <chanakan5591@gmail.com>
Envelope-to bug-bash@gnu.org
Mail-Followup-To ChanakanZ Tech <chanakan5591@gmail.com>, bug-bash@gnu.org
Content-Disposition inline
In-Reply-To <CAL3QLfWfV_b6CGd0J_KF4hTmqX1gp0DPnUh0KVOiMrPLXZUpHQ@mail.gmail.com>
User-Agent Mutt/1.10.1 (2018-07-13)
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From 139.137.100.1
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <20190716132728.GO2450@eeg.ccf.org>
X-Mailman-Original-References <CAL3QLfWfV_b6CGd0J_KF4hTmqX1gp0DPnUh0KVOiMrPLXZUpHQ@mail.gmail.com>
Xref csiph.com gnu.bash.bug:15178

Show key headers only | View raw


On Tue, Jul 16, 2019 at 01:15:50PM +0700, ChanakanZ Tech wrote:
> Description:
>         When the text in line got too long, the line duplicated into two
> 
> Repeat-By:
>         type something very long in it. It gonna duplicated into another
> one when it long than a terminal width. PS: Sorry for my English, I'm Thai.

This is usually caused by something in your PS1 (prompt) variable.

In order to diagnose that, try setting a very simple prompt, like

PS1='\h:\w\$ '

and see if you still have the same problem.  If the problem goes away,
then your PS1 variable is incorrect.

If your prompt contains terminal escape sequences (colors, boldface,
adding information to the title bar, etc.), every one of those sequences
must be inside \[ \] delimiters.  See:

https://mywiki.wooledge.org/BashFAQ/053

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: The text duplication when you type something too long. Greg Wooledge <wooledg@eeg.ccf.org> - 2019-07-16 09:27 -0400

csiph-web