[Bug 1948340] [NEW] bash-completion breaks with environment Variables

Mark Jones 1948340 at bugs.launchpad.net
Thu Oct 21 20:22:56 UTC 2021


Public bug reported:

Why does:

    vi $VIRTUAL_ENV/bin/postact<TAB>

become

    vi \$VIRTUAL_ENV/bin/postactactivate

on ubuntu 20.04 and

    vi $VIRTUAL_ENV/bin/postactactivate

on macOS.  The Ubuntu version ruins autocomplete for this command.


macOS$ echo $BASH_VERSION
3.2.57(1)-release

ubuntu$ echo ${BASH_VERSION}
5.0.17(1)-release

Would be nice to be able to use bash-completion without is messing up so
completely with reckless quoting.

Full details (including analysis of what is wrong) is here:
https://superuser.com/questions/1681581/why-does-autocomplete-vary-with-environment-variables-in-bin-bash/1681635#1681635

** Affects: bash-completion (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash-completion in Ubuntu.
https://bugs.launchpad.net/bugs/1948340

Title:
  bash-completion breaks with environment Variables

Status in bash-completion package in Ubuntu:
  New

Bug description:
  Why does:

      vi $VIRTUAL_ENV/bin/postact<TAB>

  become

      vi \$VIRTUAL_ENV/bin/postactactivate

  on ubuntu 20.04 and

      vi $VIRTUAL_ENV/bin/postactactivate

  on macOS.  The Ubuntu version ruins autocomplete for this command.

  
  macOS$ echo $BASH_VERSION
  3.2.57(1)-release

  ubuntu$ echo ${BASH_VERSION}
  5.0.17(1)-release

  Would be nice to be able to use bash-completion without is messing up
  so completely with reckless quoting.

  Full details (including analysis of what is wrong) is here:
  https://superuser.com/questions/1681581/why-does-autocomplete-vary-with-environment-variables-in-bin-bash/1681635#1681635

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1948340/+subscriptions




More information about the foundations-bugs mailing list