[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Opening a `.HFS+ Private Directory Data'$'\r` folder messes up terminal

From: Magnon Damant
Subject: Opening a `.HFS+ Private Directory Data'$'\r` folder messes up terminal prepended prompt
Date: Fri, 7 Feb 2020 17:11:43 +1000

Hello there,

I noticed a bug where when I open a Time Machine Backup folder (called .HFS+
Private Directory Data'$'\r) the terminal cursor position gets messed up.

Manjaro XFCE: 18.1.5 (up to date as of 07-Feb-2020)
bash: 5.0.11(1)-release

*Screenshot attached shows the issue and how to reproduce it.*

OS X's Time Machine backup makes a ./Time Machine Backup/.HFS+ Private
Directory Data'$'\r folder. [I initially noticed this looking at a an
removable/external USB hard-drive]

When this folder is opened in the terminal emulator the prepended
prompt [<user>@<hostname>
<folder>]$ gets messed up

I guess the '$'\r name ending is causes the issue [maybe not escaped
Prepended prompt should display [something like]:
[magnon@magnon-desktop .HFS+ Private Directory Data^M]$

Prepended prompt displays:
]$ gnon@magnon-desktop .HFS+ Private Directory Data
with the cursor in the 4th character from the start position (rather than
the end of the line)

Bug initially logged with Xfce4-termina
<https://bugzilla.xfce.org/show_bug.cgi?id=16291>, got referred to gnome
[terminal] <https://gitlab.gnome.org/GNOME/vte/issues/213#note_697761>, and
finally got referred to bash.

Kind regards,

*Magnon Damant*

*address@hidden <address@hidden>*

Attachment: bash_display_issue_Screenshot_2020-02-07_17-03-08.jpg
Description: JPEG image

reply via email to

[Prev in Thread] Current Thread [Next in Thread]