Control: tags -1 + confirmed upstream

On Tue, Feb 19 2019, 積丹尼 Dan Jacobson wrote:
> 
> $ set apt-show-versions
> $ zless /usr/share/doc/$@/ch<TAB>
> $ zless /usr/share/doc/$@/ch
> chromium          chromium-common   chromium-sandbox  chromium-shell
> $ zless /usr/share/doc/\$@/chromium

The backslash is added in _quote_readline_by_ref, by this statement:

  printf -v $2 %q "$1"

It only adds the backslash to unset variables, but not when the variable
is set, for instance:

  zless /usr/share/$PATH/<TAB>

does nothing, whereas

  zless /usr/share/$ASDF/<TAB>
  zless /usr/share/\$ASDF/

causes the problem you describe...  Marking as confirmed and upstream.

Reply via email to