Skip to contentSkip to conversation

New: On hitting tab key from terminal against a directory name ending with ':\' doesnot shows files/dir inside it rather shows dir name itself

Bug 206613 [email protected] 1 participant 3 messages Feb 20, 2020 – Feb 21, 2020

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=206613

Bug ID: 206613
Summary: On hitting tab key from terminal against a directory
name ending with ':\' doesnot shows files/dir inside it rather shows dir name itself
Product: File System
Version: 2.5
Kernel Version: 5.5.0-050500-generic
Hardware: All
OS: Linux
Tree: Mainline
Status: NEW
Severity: low
Priority: P1
Component: ext4
Assignee: [email protected]
Reporter: [email protected]
Regression: No

Hi All.
Recently I bought a new laptop for usability purpose of my wife I created some folders by Name C:\ D:\ E:\ and mounted 3 partitions (as she is a win user), lately I have observed if hit tab againt these 3 dir , it does not exposes files/dir which is contained. Which generally doesnot happens.

Log Snippet
===========

root@jarvis:~# uname -a
Linux jarvis 5.5.0-050500-generic #202001262030 SMP Mon Jan 27 01:33:36 UTC
2020 x86_64 x86_64 x86_64 GNU/Linux
root@jarvis:~# 
root@jarvis:~# cat /etc/os-release 
NAME="Ubuntu"
VERSION="19.10 (Eoan Ermine)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 19.10"
VERSION_ID="19.10"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=eoan
UBUNTU_CODENAME=eoan

When I normally hit tab against any dir it exposes files/dir
=============================================================

root@jarvis:~# cd /
bin/        cdrom/      etc/        lib/        lib64/      lost+found/ mnt/   
    proc/       run/        srv/        tmp/        var/
boot/       dev/        home/       lib32/      libx32/     media/      opt/   
    root/       sbin/       sys/        usr/        
root@jarvis:~# 

But when I try to hit tab against any dir ending with :\
==============================================================

root@jarvis:/home/abhishek/Desktop# ls
'C:\'  'D:\'  'E:\'
abhishek@jarvis:~/Desktop$ cd 'C:\'^C =========>does not recommends any thing
abhishek@jarvis:~/Desktop$ cd C:\\ =========>does not recommends any thing
Signature · 2 lines
You are receiving this mail because:
You are watching the assignee of the bug.
#1 lore raw

[Bug 206613] On hitting tab key from terminal against a directory name ending with ':\' doesnot shows files/dir inside it

https://bugzilla.kernel.org/show_bug.cgi?id=206613

Abhishek Srivastava ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

            Summary|On hitting tab key from     |On hitting tab key from
                   |terminal against a          |terminal against a
                   |directory name ending with  |directory name ending with
                   |':\' doesnot shows          |':\' doesnot shows
                   |files/dir inside it rather  |files/dir inside it
                   |shows dir name itself       |
Signature · 2 lines
You are receiving this mail because:
You are watching the assignee of the bug.
#2 lore raw

[Bug 206613] On hitting tab key from terminal against a directory name ending with ':\' doesnot shows files/dir inside it

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=206613

Andreas Dilger ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

                 CC|                            |adilger.kernelbugzilla@dilg
                   |                            |er.ca

--- Comment #1 from Andreas Dilger ([email protected]) --- This has nothing to do with ext4, but rather "bash-completion".

I suspect that including "\" into the directory name will make a lot of tools unhappy, so it would be better to name these directories just "C:", "D:", "E:", since you will need to use "/" as the pathname separator anyway, and "C:\/dir/file" is going to get old quickly.

Signature · 2 lines
You are receiving this mail because:
You are watching the assignee of the bug.