Skip to content

fix(java,rsync,scp): handle quoted space in filepaths properly #1417

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

akinomyoga
Copy link
Collaborator

@akinomyoga akinomyoga commented Aug 10, 2025

Separated from #1357.

Fixes #1232

akinomyoga and others added 2 commits August 10, 2025 20:30
Filenames containing a special character are not properly completed
[1].  These completions generate filenames by pathname expanaion using
$cur.  However, $cur contains the word on the command line including
quotaing, such as cur='file\ with\ space.txt' and cur='"a b c.txt"'.
This patch obtains the value of "cur" using _comp_dequote.

[1] scop#1232

This patch also fixes a similar case in completions/java.

Co-authored-by: Yedaya Katsman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[2.14.0] rsync path completion fails if a folder name have a space
1 participant