Debian Bug report logs - #1072865
bash: Cannot ls/cd into a directory with special chars

version graph

Package: bash; Maintainer for bash is Matthias Klose <[email protected]>; Source for bash is src:bash (PTS, buildd, popcon).

Reported by: Helge Kreutzmann <[email protected]>

Date: Sun, 9 Jun 2024 13:39:01 UTC

Severity: minor

Tags: moreinfo

Found in version bash/5.2.21-2

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Matthias Klose <[email protected]>:
Bug#1072865; Package bash. (Sun, 09 Jun 2024 13:39:03 GMT) (full text, mbox, link).


Acknowledgement sent to Helge Kreutzmann <[email protected]>:
New Bug report received and forwarded. Copy sent to Matthias Klose <[email protected]>. (Sun, 09 Jun 2024 13:39:03 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Helge Kreutzmann <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: bash: Cannot ls/cd into a directory with special chars
Date: Sun, 9 Jun 2024 13:37:52 +0000
[Message part 1 (text/plain, inline)]
Package: bash
Version: 5.2.21-2+b1
Severity: minor

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


-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to de_DE.UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages bash depends on:
ii  base-files   13.2
ii  debianutils  5.18
ii  libc6        2.38-12
ii  libtinfo6    6.5-2

Versions of packages bash recommends:
ii  bash-completion  1:2.14.0-1

Versions of packages bash suggests:
pn  bash-doc  <none>

-- no debconf information

-- 
      Dr. Helge Kreutzmann                     [email protected]
           Dipl.-Phys.                   http://www.helgefjell.de/debian.php
        64bit GNU powered                     gpg signed mail preferred
           Help keep free software "libre": http://www.ffii.de/
[signature.asc (application/pgp-signature, inline)]

Information forwarded to [email protected], Matthias Klose <[email protected]>:
Bug#1072865; Package bash. (Fri, 14 Jun 2024 16:03:02 GMT) (full text, mbox, link).


Acknowledgement sent to Gioele Barabucci <[email protected]>:
Extra info received and forwarded to list. Copy sent to Matthias Klose <[email protected]>. (Fri, 14 Jun 2024 16:03:02 GMT) (full text, mbox, link).


Message #10 received at [email protected] (full text, mbox, reply):

From: Gioele Barabucci <[email protected]>
To: [email protected]
Subject: Re: Bug#1072865: bash: Cannot ls/cd into a directory with special chars
Date: Fri, 14 Jun 2024 18:00:38 +0200
Control: tags -1 moreinfo

On Sun, 9 Jun 2024 13:37:52 +0000 Helge Kreutzmann 
<[email protected]> wrote:
> Package: bash
> Version: 5.2.21-2+b1
> Severity: minor
> 
> 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

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

Regards,

-- 
Gioele Barabucci



Added tag(s) moreinfo. Request was from Gioele Barabucci <[email protected]> to [email protected]. (Fri, 14 Jun 2024 16:03:02 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 09:33:50 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.