Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #11937
| Path | csiph.com!xmission!news.glorb.com!usenet.stanford.edu!not-for-mail |
|---|---|
| From | Chet Ramey <chet.ramey@case.edu> |
| Newsgroups | gnu.bash.bug |
| Subject | Re: prompt with \w incl. long UTF string messes up command line |
| Date | Mon, 30 Nov 2015 22:19:54 -0500 |
| Organization | ITS, Case Western Reserve University |
| Lines | 38 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.1074.1448940005.31583.bug-bash@gnu.org> (permalink) |
| References | <CAGKoo-yvVMR3Oy81ENDwZa4w5Smr6wx9euB_Dkr3ELtGOdF_5g@mail.gmail.com> |
| Reply-To | chet.ramey@case.edu |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 7bit |
| X-Trace | usenet.stanford.edu 1448940005 21654 208.118.235.17 (1 Dec 2015 03:20:05 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| Cc | chet.ramey@case.edu |
| To | Ryo Furue <ryofurue@gmail.com>, bug-bash@gnu.org |
| Envelope-to | bug-bash@gnu.org |
| User-Agent | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
| In-Reply-To | <CAGKoo-yvVMR3Oy81ENDwZa4w5Smr6wx9euB_Dkr3ELtGOdF_5g@mail.gmail.com> |
| X-Mirapoint-Virus-RAPID-Raw | score=unknown(0), refid=str=0001.0A020204.565D11DC.005E,ss=1,re=0.000,fgs=0, ip=40.133.186.169, so=2015-08-12 04:07:17, dmn=2011-05-27 18:58:46 |
| X-Mirapoint-Loop-Id | 9f7f64a43adbfb2a4ec4b050bee83ea7 |
| X-Junkmail-Whitelist | YES (by domain whitelist at mpv3-2015.case.edu) |
| X-Mirapoint-Virus-RAPID-Raw | score=unknown(0), refid=str=0001.0A020201.565D11DD.002F,ss=1,re=0.000,fgs=0, ip=40.133.186.169, so=2015-08-12 04:07:17, dmn=2011-05-27 18:58:46 |
| X-Mirapoint-Loop-Id | 2e8ffdebb9adabbcac8267f1d7f7ce84 |
| X-detected-operating-system | by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] |
| X-Received-From | 129.22.103.194 |
| X-BeenThere | bug-bash@gnu.org |
| X-Mailman-Version | 2.1.14 |
| 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 | <http://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> |
| Xref | csiph.com gnu.bash.bug:11937 |
Show key headers only | View raw
On 11/25/15 3:33 AM, Ryo Furue wrote: > Bash Version: 4.3 > Patch Level: 42 > Release Status: release > > Description: > When PS1 includes \w and when \w contains long path including UTF > characters, the cursor position or the command line is messed up. > > Repeat-By: > 1. Source the attached script: > $ . bash-prompt-bug.sh > > 2.1. You'll find the prompt is messed up: shorter than the > real path name, garbage character at the top. > 2.2. If you use the tput commands, which are commented out > in bash-prompt-bug.sh, the prompt is fine, but the cursor > position is messed up. > > 3. After 2.2, try to complete filenames by pressing TAB, > and sometimes you'll find the cursor position is > even more badly messed up. Thanks for the report. I could not reproduce 2.1 with bash-4.4-beta (prompt with multibyte characters whose visible length exceeds the screen width and consequently wraps), but 2.2, which combines that with invisible characters in the prompt (which need to be included in calculations to determine cursor position), displays incorrectly. This will be fixed in the next release of bash. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
Back to gnu.bash.bug | Previous | Next | Find similar
Re: prompt with \w incl. long UTF string messes up command line Chet Ramey <chet.ramey@case.edu> - 2015-11-30 22:19 -0500
csiph-web