Skip to content

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

Merged
akinomyoga merged 2 commits intoscop:mainfrom
akinomyoga:scp-refactor-3
Sep 18, 2025
Merged

fix(java,rsync,scp): handle quoted space in filepaths properly #1417
akinomyoga merged 2 commits intoscop:mainfrom
akinomyoga:scp-refactor-3

Conversation

@akinomyoga
Copy link
Collaborator

@akinomyoga akinomyoga commented Aug 10, 2025

Separated from #1357.

Fixes #1232

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 <yedaya.ka@gmail.com>
@akinomyoga akinomyoga merged commit 136dd33 into scop:main Sep 18, 2025
7 checks passed
@akinomyoga akinomyoga deleted the scp-refactor-3 branch September 18, 2025 13:02
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

2 participants