[PATCH v2 0/2] sftp: Completions tweaks

Michal Privoznik mprivozn at redhat.com
Tue Sep 13 00:17:10 AEST 2022


I've noticed that "get" and "put" sftp commands offer correct completion
for the first path (remote/local respectively), but incorrect for the
second path (again, remote/local respectively). By tweaking the code a
bit the completer can offer the right path for both arguments.

This is a v2 of:
https://marc.info/?l=openssh-unix-dev&m=164226681707781&w=2

diff to v1:
- Rebase onto current master as the old version no longer applies
  cleanly.

Michal Privoznik (2):
  sftp: Don't attempt to complete arguments for non-existent commands
  sftp: Be a bit more clever about completions

 sftp.c | 113 ++++++++++++++++++++++++++++++++++-----------------------
 1 file changed, 67 insertions(+), 46 deletions(-)

-- 
2.35.1



More information about the openssh-unix-dev mailing list