#1072865 bash: Cannot ls/cd into a directory with special chars

Package:
bash
Source:
bash
Description:
GNU Bourne Again SHell
Submitter:
Helge Kreutzmann
Date:
2024-06-14 16:03:02 UTC
Severity:
normal
Tags:
#1072865#5
Date:
2024-06-09 13:37:52 UTC
From:
To:
If I run "ls" in a certain diretory, I get:
…                                                   …                                                              Jean-Michel_Jarre-Oxygène_3         Jean-Michel_Jarre-Oxymore.3D            …
Jean-Michel_Jarre-Electronica_1_The_Time_Machine    …                                                              …                                   …
Jean-Michel_Jarre-Electronica_2_The_Heart_of_Noise  …                                                              …                                   …
Jean-Michel_Jarre-Equinoxe                          …                                                              …                                   Jean-Michel_Jarre-Zoolook


Here "…" are other directories not relevant for this bug report.

Now I enter "ls" (or cd) and copy & paste (with gpm) "Jean-Michel_Jarre" at the prompt and press tab 3x:

helge@twentytwo:$ ls Jean-Michel_Jarre
Jean-Michel_Jarre-Electronica_1_The_Time_Machine/
Jean-Michel_Jarre-Equinoxe/
Jean-Michel_Jarre-Zoolook/
Jean-Michel_Jarre-Electronica_2_The_Heart_of_Noise/
Jean-Michel_Jarre-Oxymore.3D/

As you can see, "Jean-Michel_Jarre-Oxygène_3" is not listed.

If I copy and paste the full name, it does not work either:
helge@twentytwo:$ ls Jean-Michel_Jarre-Oxygène_3
ls: Zugriff auf 'Jean-Michel_Jarre-Oxygène_3' nicht möglich: Datei oder Verzeichnis nicht gefunden
helge@twentytwo:$ cd Jean-Michel_Jarre-Oxygène_3
-bash: cd: Jean-Michel_Jarre-Oxygène_3: Datei oder Verzeichnis nicht gefunden

It says "File or directory not found"

Permissions etc. are alright, using mc(1) or cmus(1) I can access the directory Jean-Michel_Jarre-Oxygène_3 without problems

#1072865#10
Date:
2024-06-14 16:00:38 UTC
From:
To:
Control: tags -1 moreinfo

Could you please provide the output of `LC_ALL=C ls -1 -F -b`?

Regards,