Path: csiph.com!3.us.feeder.erje.net!feeder.erje.net!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail From: =?koi8-r?Q?=E1=CC=C5=CB=D3=C5=CA_?= =?koi8-r?Q?=FB=C9=CC=C9=CE?= Newsgroups: gnu.bash.bug Subject: Re: [readline] Multibyte invisible chars cause weird prompt length calculation issue Date: Tue, 26 Nov 2019 14:45:49 +0300 Lines: 19 Approved: bug-bash@gnu.org Message-ID: References: <3dd641953467a3299265e479026fc40a7bb697d4.camel@mail.ru> <5DDC8DEC.7000602@tlinx.org> <7e3b83df07c20ccd75373f8804d2b0f2f930c773.camel@mail.ru> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Trace: usenet.stanford.edu 1574768760 12956 209.51.188.17 (26 Nov 2019 11:46:00 GMT) X-Complaints-To: action@cs.stanford.edu To: L A Walsh , bug-bash@gnu.org Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:To:From:Subject:Message-ID; bh=3vTj8d5YCMigE+2DGMPSBQwqw258nvXbvgk3YUAy7EU=; b=cdq8z80NZDTfOx22K9qbulAgFi2j6ulGh14+Plj0E7c8dYa0kgwIUWiYrvrstYEnMeQZRnpo5phTLV8uhgRWy1RdD/RJaHlAdemqwJ+LHytkF74DSpdYqNkKw00tf1UMQOr6gDbkPS0NoZ1HfipK9rRC9lGkt7qPFZ6TLoVdvm8=; In-Reply-To: <5DDC8DEC.7000602@tlinx.org> User-Agent: Evolution 3.30.5-1.1 Authentication-Results: smtp46.i.mail.ru; auth=pass smtp.auth=rootlexx@mail.ru smtp.mailfrom=rootlexx@mail.ru X-77F55803: 257C4F86AB09C89C5A78504BD2AC2941988784FC6C4AE31F0AC5743AFB92AA59B75BFF4D0650A1949F6114E355C8227AB91F83A3DADC93B7 X-7FA49CB5: 0D63561A33F958A563F3F69D353BC18B95B6A87DD2E909BD0CF358DB8FD6913C8941B15DA834481FA18204E546F3947C2FFDA4F57982C5F4F6B57BC7E64490618DEB871D839B7333395957E7521B51C2545D4CF71C94A83E9FA2833FD35BB23D27C277FBC8AE2E8BF1175FABE1C0F9B6A471835C12D1D977C4224003CC8364767815B9869FA544D8D32BA5DBAC0009BE9E8FC8737B5C2249B7057B79CCFA8C9476E601842F6C81A12EF20D2F80756B5F5C318D1F9ECD513A76E601842F6C81A127C277FBC8AE2E8B30996C0F5C7D003E3AA81AA40904B5D99449624AB7ADAF379E834CA16AA0C2CC725E5C173C3A84C3AA93A90EDF72B434D6A97B810D1A6988CC4B623DB76FBBCBC4224003CC836476C0CAF46E325F83A50BF2EBBBDD9D6B0F93F060FBA3C93C613B503F486389A921A5CC5B56E945C8DA X-Mailru-Sender: FD65D7C492470CAED3DD1703795F7E0215A056B95EA8ED561333A176C6B55C45D0C8335361DDF71515D893B5EE9B869EC77752E0C033A69ED2A0601D20520849A97B7613133B5FEC3453F38A29522196 X-Mras: OK X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 94.100.177.106 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <7e3b83df07c20ccd75373f8804d2b0f2f930c773.camel@mail.ru> X-Mailman-Original-References: <3dd641953467a3299265e479026fc40a7bb697d4.camel@mail.ru> <5DDC8DEC.7000602@tlinx.org> Xref: csiph.com gnu.bash.bug:15652 В Пн, 25/11/2019 в 18:29 -0800, L A Walsh пишет: > Multi-byte or not, invisible characters need to be enclosed > as documented under 'PROMPTING': > > \[ begin a sequence of non-printing characters, which could > be used to embed a terminal control sequence into the > prompt > \] end a sequence of non-printing characters > I know that. And they *are* enclosed: PS1='\[\e]0;\u@\h: \w\a\]${debian_chroot... ^~ ^~ As expected, they are not being printed -- but for some reason lead to the described issue.