-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[fzf-completion] Overcompensation for colon-including directory names #501
Comments
Thanks for the report. Sorry for the delayed reply. I could reproduce the problem in my environment, so I have been testing the behavior locally. This seems to be related to Bash's The following example demonstrates the behavior of the $ cat bashrc
mkdir -p ~/tmp1/a:b
touch ~/tmp1/a:b/{a..c}.txt
function _test1 {
COMPREPLY=($(compgen -f -- '\~/tmp1/a\\:b/'))
printf '\e[32;1m<%s>\e[m' "${COMPREPLY[@]}" >/dev/tty
}
complete -F _test1 test1
$ bash --rcfile bashrc
$ _test1[RET]
<~/tmp1/a\:b/a.txt><~/tmp1/a\:b/b.txt><~/tmp1/a\:b/c.txt>$
$ test1 [TAB]<~/tmp1/a\:b/a.txt><~/tmp1/a\:b/b.txt><~/tmp1/a\:b/c.txt>~/tmp1/a\:b/[TAB]<~/tmp1/a:b/a.txt><~/tmp1/a:b/b.txt><~/tmp1/a:b/c.xt> In the above results, one can observe the following behavior of the
The |
I added a fix in akinomyoga/blesh-contrib@ce3409d. Could you check the behavior in the latest I realized that the reported issue doesn't arise when the fzf completion is not loaded. The adjustments made by ble.sh somehow sidestepped the behavior change of the |
When completing a file in directory which names contains colon character (specifically
~/build/devel\:languages\:python\:Factory/python36/
)ble.sh
tries to quote colon characters, but during the completion process, it does it too much, so the result is~/build/devel\\\:languages\\\:python\\\:Factory/python36/CVE-2024-6232-ReDOS-backtrack-tarfile.patch
, which doesn’t work.See https://asciinema.org/a/JS7xiLCezmNnOhEhcJb0HjZj0 (play it in the full screen)
The text was updated successfully, but these errors were encountered: