[Bash-completion-devel] Bug#844470: bash-completion: make completion breaks VAR=/path

Brian Allen Vanderburg II brianvanderburg2 at aim.com
Wed Nov 16 04:15:41 UTC 2016


Package: bash-completion
Version: 1:2.1-4
Severity: normal

Dear Maintainer,

I Recently updated various packages on Debian Jessie.  Before the update, I was
able to execute make in the following fashion:

        make backup TARGET=/path/to/backup

And make would auto-complete the path as I typed it out.  After the updates,
the completion of the path is broken.  To verify that it was not my user
account, I signed in as root to test as well (as root has no environment
customizations) and get the same issue.

Without bash completion loaded, I can type

        make backup TARGET=/path/to/backup

and filename completion occurs while I am tabbing out the path.  However,
completion of make targets/etc does not occur.  When bash completion is loaded,
completion of most make targets works, but not the path.

When I attempt to complete the path, before pressing tab I get:

        make backup TARGET=/path/to/ba

When I press tab, the entire line is replaced with:

        make backup /path/to/backup


I'm not sure what is causing the issue.  I seem to be able to confirm that
"prev" and "cur" are being set to "TARGET=" and "/path/to/ba" before calling
"_filedir" in the "completions/make" script.  However, afterward, the entire
word "TARGET=/path/to/ba" is being replaced instead of just the path portion.
Also, once this is replaced, completion of the path no longer works since it
does not contain "VAR=" syntax anymore.



-- System Information:
Debian Release: 8.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.6.0-0.bpo.1-amd64 (SMP w/6 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages bash-completion depends on:
ii  bash  4.3-11+b1
ii  dpkg  1.17.27

bash-completion recommends no packages.

bash-completion suggests no packages.

-- no debconf information



More information about the Bash-completion-devel mailing list