[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug in Bash Version 5.0.11(1)-release
From: |
Greg Wooledge |
Subject: |
Re: Bug in Bash Version 5.0.11(1)-release |
Date: |
Mon, 14 Oct 2019 14:29:39 -0400 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Mon, Oct 14, 2019 at 06:21:23PM +0000, Daniel Hannon wrote:
> I am running Arch Linux
>
> Locale is as follows
>
> locale: Cannot set LC_CTYPE to default locale: No such file or directory
> locale: Cannot set LC_MESSAGES to default locale: No such file or directory
> locale: Cannot set LC_ALL to default locale: No such file or directory
> LANG=en_IE.UTF-8
> LC_CTYPE="en_IE.UTF-8"
> LC_NUMERIC="en_IE.UTF-8"
> LC_TIME="en_IE.UTF-8"
> LC_COLLATE=C
> LC_MONETARY="en_IE.UTF-8"
> LC_MESSAGES="en_IE.UTF-8"
> LC_PAPER="en_IE.UTF-8"
> LC_NAME="en_IE.UTF-8"
> LC_ADDRESS="en_IE.UTF-8"
> LC_TELEPHONE="en_IE.UTF-8"
> LC_MEASUREMENT="en_IE.UTF-8"
> LC_IDENTIFICATION="en_IE.UTF-8"
> LC_ALL=
>
> enclosed is a video in which it is replicated
> ________________________________
> From: Greg Wooledge <wooledg@eeg.ccf.org>
> Sent: Monday 14 October 2019 13:53
> To: Daniel Hannon <danhan@live.ie>
> Cc: bug-bash@gnu.org <bug-bash@gnu.org>
> Subject: Re: Bug in Bash Version 5.0.11(1)-release
>
> On Mon, Oct 14, 2019 at 10:39:41AM +0000, Daniel Hannon wrote:
> > the use of the "…" character results in the ability to delete the bash
> > prompt string using backspace
>
> I can't reproduce this.
>
> wooledg:~$ bash
> wooledg:~$ PS1='…\h:\w\$ '
> …wooledg:~$ echo "$BASH_VERSION"
> 5.0.3(1)-release
> …wooledg:~$
>
> Hitting the backspace key repeatedly does nothing (as expected).
>
> What operating system are you on, and what is the output of "locale"?
He sent this to me off-list.
I'm not forwarding the video. I'm not even going to open it.
Looks like you've managed to create a messed-up locale situation, in
which you've mixed some UTF-8 encoding variables with one plain "C", and
some or all of your variables are not recognized by your operating system.
If you unset LC_COLLATE, does the problem go away? Not sure if it's
sufficient to unset it in a shell and then try the prompt within that
same shell, or if you need to unset it, then run "bash" to get a new
shell without it... I'd try both ways.
I would definitely look to get rid of those three error lines, because
that can't be good. Not sure whether they're immediately related to
your prompt-backspace issue, but they're not something I would be
comfortable living with permanently.
You might need to ask an Arch Linux group for assistance, if you can't
figure it out on your own.