-
Bug
-
Resolution: Won't Do
-
Minor
-
None
-
rhel-8.8.0
-
None
-
None
-
Moderate
-
rhel-plumbers
-
ssg_core_services
-
3
-
False
-
False
-
-
None
-
None
-
None
-
None
-
-
All
-
None
ISSUE:
bash completion with a variable in path doesn't work for cd command
ENVIRONMENT:
bash-4.4.20-4.el8_6.x86_64
bash-completion-2.7-5.el8.noarch
Existing behavior:
[root@rhel-8-8 ~]# mkdir -p /tmp/$$/test [root@rhel-8-8 ~]# cd /tmp/$$/<tab> >nothing happens: cd /tmp/$$/
Expected behavior:
[root@rhel-8-8 ~]# mkdir -p /tmp/$$/test [root@rhel-8-8 ~]# cd /tmp/$$/<tab> >should result: cd /tmp/$$/test
Additional information:
once complete for `cd` is disabled ($ complete -r cd), the following bug (RHEL-14766) pops up:
[root@rhel-8-8 ~]# complete -r cd [root@rhel-8-8 ~]# cd /tmp/$$/<tab> [root@rhel-8-8 ~]# cd /tmp/\$\$/test/ -bash: cd: /tmp/$$/test/: No such file or directory