Bug#931685: bash-completion: completion disables usage of environment variables

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#931685: bash-completion: completion disables usage of environment variables

Michael Becker
Package: bash-completion
Version: 1:2.8-6
Severity: normal

with an existing directory $HOME/devel
  ls $HOME/dev<TAB>
completes to
  ls \$HOME/devel/
what invalidates the usage of the environment variable



-- System Information:
Debian Release: 10.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

-- no debconf information

Reply | Threaded
Open this post in threaded view
|

Bug#931685: bash-completion: completion disables usage of environment variables

Gabriel F. T. Gomes-4
Control: merge 922657 931685
Control: stop

On Tue, 09 Jul 2019 11:39:47 +0200 Michael Becker <[hidden email]> wrote:
>
> with an existing directory $HOME/devel
>   ls $HOME/dev<TAB>
> completes to
>   ls \$HOME/devel/

This has the same root cause of bug https://bugs.debian.org/922657,
i.e.: in _quote_readline_by_ref, the backslash gets added by:

  printf -v $2 %q "$1"

This has been reported upstream as
https://github.com/scop/bash-completion/issues/290

I'm merging the bug reports.

Thanks,
Gabriel