Skip to content
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

OpenSSH 9.0 changed double quoting behavior #150

Open
Kistelini opened this issue Nov 2, 2022 · 3 comments
Open

OpenSSH 9.0 changed double quoting behavior #150

Kistelini opened this issue Nov 2, 2022 · 3 comments

Comments

@Kistelini
Copy link

Kistelini commented Nov 2, 2022

OpenSSH 9.0 changed the default scp protocol from scp to sftp. This also changes how remote path have to be quoted and leads to broken autocompletion on Arch Linux where OpenSSH 9.0 is already the default. Example:

% touch test\ a
% scp test\ a remote:
test a                                                                                                                       100%    0     0.0KB/s   00:00    
% scp test\ a remote:test\\\ a #with tab completion
test a                                                                                                                       100%    0     0.0KB/s   00:00    
% ssh remote ls
test a
test\ a

This also affects rsync completion.

@mika
Copy link
Member

mika commented Nov 2, 2022

Hm, this feels like this should be raised at Zsh upstream, or what do @ft + @xtaran think? Are you aware of any ongoing work related to this? Possible workarounds in grml-zshrc?

@xtaran
Copy link
Contributor

xtaran commented Nov 2, 2022

Upstream is aware of it. There was a thread about it which came to the conclusion that despite OpenSSH stated this in the release notes, Tab completion still works as before and no changes are necessary as of now (well, back then in April 2022). And that the fact that it still works seems to be a bug in OpenSSH 9.0. See the thread at https://zsh.org/workers/50062

Now the above is the first case I see where it seems to no more work, And I tried quite some ways to find a broken combination back then.

@Kistelini: Which version of SSH was on the server side? (Assuming that you have OpenSSH 9.0 on the client side.)

@Kistelini
Copy link
Author

Client is 9.1p1, server is 8.4p1

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

No branches or pull requests

3 participants