Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-14766

bash-completion escapes $ (to \$) with variable in path

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • rhel-8.8.0
    • bash-completion
    • None
    • None
    • Low
    • rhel-plumbers
    • ssg_core_services
    • 3
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • All
    • None

      ISSUE:
      bash-completion escapes $ (to \$) with variable in path

      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 ~]# ls /tmp/$$/<tab> 
      > completes into:  ls /tmp/\$\$/test/
      ls: cannot access '/tmp/$$/test/': No such file or directory

       

      Expected behavior:

       

      [root@rhel-8-8 ~]# mkdir -p /tmp/$$/test
      [root@rhel-8-8 ~]# ls /tmp/$$/<tab> 
      > should result:   ls /tmp/$$/test/

       

              rhn-support-svashish Siteshwar Vashisht
              rhn-support-dbodnarc Dmitri Bodnarciuc
              Siteshwar Vashisht Siteshwar Vashisht
              RHEL CS Plumbers QE Bot RHEL CS Plumbers QE Bot
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: