Bug 206613 - On hitting tab key from terminal against a directory name ending with ':\' doesnot shows files/dir inside it
Summary: On hitting tab key from terminal against a directory name ending with ':\' do...
Status: NEW
Alias: None
Product: File System
Classification: Unclassified
Component: ext4 (show other bugs)
Hardware: All Linux
: P1 low
Assignee: fs_ext4@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-20 17:15 UTC by Abhishek Srivastava
Modified: 2020-02-21 21:26 UTC (History)
2 users (show)

See Also:
Kernel Version: 5.5.0-050500-generic
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Abhishek Srivastava 2020-02-20 17:15:53 UTC
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
Comment 1 Andreas Dilger 2020-02-21 21:26:10 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.