git bash completion modifies COMP_WORDBREAKS breaking other autocompletion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you for filling out a Git bug report!
Please answer the following questions to help us understand your issue.

What did you do before the bug happened? (Steps to reproduce your issue)
I used bash autocompletion. So:
git <tab>

What did you expect to happen? (Expected behavior)
The bash environment variable ${COMP_WORDBREAKS} remains unmodified.

What happened instead? (Actual behavior)
COMP_WORDBREAKS is modified. Specifically, a colon is appended.

What's different between what you expected and what actually happened?
COMP_WORDBREAKS being modified.

Anything else you want to add:
This breaks auto-completion of programs that rely on completing arguments that include colons. For example, autocompleting arguments like: "file://abc" - hitting
tab gives something like "file:file://abc". As far as I'm aware, modifying
COMP_WORDBREAKS is no longer considered good practice.

Doing some research, I see the following patch, which I'd be in favor of using:
https://patchwork.kernel.org/project/git/patch/20201104174716.783348-6-felipe.contreras@xxxxxxxxx/

Not sure if this will just get lost in the noise, but I figured I'd send this at least as a 'bump' towards this issue.

[System Info]
git version:
git version 2.36.1
cpu: x86_64
no commit associated with this build
sizeof-long: 8
sizeof-size_t: 8
shell-path: /bin/sh
uname: Linux 5.13.0-41-generic #46~20.04.1-Ubuntu SMP Wed Apr 20 13:16:21 UTC 2022 x86_64
compiler info: gnuc: 9.4
libc info: glibc: 2.31
$SHELL (typically, interactive shell): /bin/bash


[Enabled Hooks]
not run from a git repository - no hooks to show




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux