Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -march=x86-64 -mtune=generic -O2 -pipe -fno-plt
-DDEFAULT_PATH_VALUE='/usr/local/sbin:/usr/local/bin:/usr/bin'
-DSTANDARD_UTILS_PATH='/usr/bin' -DSYS_BASHRC='/etc/bash.bashrc'
-DSYS_BASH_LOGOUT='/etc/bash.bash_logout' -DNON_INTERACTIVE_LOGIN_SHELLS
uname output: Linux w-arch 5.10.7-arch1-1 #1 SMP PREEMPT Wed, 13 Jan
2021 12:02:01 +0000 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu
Bash Version: 5.1
Patch Level: 4
Release Status: release
Description:
man bash says:
> completion-map-case (Off)
> If set to On, and completion-ignore-case is enabled, readline treats
hyphens (-) and underscores (_) as equivalent when performing
case-insensitive filename matching and completion.
$ bind -v|grep case
set completion-ignore-case on
set completion-map-case on
Repeat-By:
So it should be enabled and when I type
$ touch _test
$ chmod +x -t<TAB>
it completes to
$ chmod +x _test
But neither
$ ./-t<TAB>
$ ls -t<TAB>
complete.
If I turn off progcomp with `shopt -u progcomp` (as suggested here
https://unix.stackexchange.com/questions/629844/bash-completion) it
allows the `ls` example to complete but not the other.