Mailing List Archive

[PATCH v2 0/2] sftp: Completions tweaks
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

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev
Re: [PATCH v2 0/2] sftp: Completions tweaks [ In reply to ]
On Mon, 12 Sep 2022, Michal Privoznik wrote:

> 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.

Thanks! Both of these patches have been applied.

-d
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev