[packages/zsh] when completing ssh host always use both known_hosts and config; rel 3

atler atler at pld-linux.org
Wed Jul 12 15:32:05 CEST 2023


commit f45d317fdd4566d3ab7fa2681d7b47d3614217c1
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Jul 12 14:45:20 2023 +0200

    when completing ssh host always use both known_hosts and config; rel 3
    
    by default zsh skips config if known_hosts has any match. also see:
    
    https://www.zsh.org/mla/workers/2022/msg01475.html

 comp-all-ssh-hosts.patch | 15 +++++++++++++++
 zsh.spec                 |  6 ++++--
 2 files changed, 19 insertions(+), 2 deletions(-)
---
diff --git a/zsh.spec b/zsh.spec
index 87c7f99..e57cc3b 100644
--- a/zsh.spec
+++ b/zsh.spec
@@ -16,7 +16,7 @@ Summary(tr.UTF-8):	Gelişmiş bir BASH sürümü
 Summary(uk.UTF-8):	Командний процесор (shell) схожий на ksh, але з покращеннями
 Name:		zsh
 Version:	5.9
-Release:	2
+Release:	3
 License:	BSD-like
 Group:		Applications/Shells
 Source0:	https://downloads.sourceforge.net/zsh/%{name}-%{version}.tar.xz
@@ -29,7 +29,8 @@ Source4:	%{name}rc
 Patch0:		%{name}-info.patch
 Patch1:		%{name}-addons.patch
 Patch2:		%{name}-paths.patch
-Patch4:		%{name}-nolibs.patch
+Patch3:		%{name}-nolibs.patch
+Patch4:		comp-all-ssh-hosts.patch
 URL:		http://www.zsh.org/
 BuildRequires:	autoconf >= 2.69
 BuildRequires:	automake
@@ -169,6 +170,7 @@ Podręcznik Użytkownika Z-Shella.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 %patch4 -p1
 
 install %{SOURCE2} .
diff --git a/comp-all-ssh-hosts.patch b/comp-all-ssh-hosts.patch
new file mode 100644
index 0000000..d405dc1
--- /dev/null
+++ b/comp-all-ssh-hosts.patch
@@ -0,0 +1,15 @@
+--- zsh-5.9/Completion/Unix/Type/_ssh_hosts.orig	2022-05-08 08:18:22.000000000 +0200
++++ zsh-5.9/Completion/Unix/Type/_ssh_hosts	2023-07-12 14:35:18.406156647 +0200
+@@ -6,10 +6,10 @@
+ 
+ # If users-hosts matches, we shouldn't complete anything else.
+ if [[ "$IPREFIX" == *@ ]]; then
+-  _combination -s '[:@]' my-accounts users-hosts "users=${IPREFIX/@}" hosts "$@" && return
++  _combination -s '[:@]' my-accounts users-hosts "users=${IPREFIX/@}" hosts "$@" #&& return
+ else
+   _combination -s '[:@]' my-accounts users-hosts \
+-    ${opt_args[-l]:+"users=${opt_args[-l]:q}"} hosts "$@" && return
++    ${opt_args[-l]:+"users=${opt_args[-l]:q}"} hosts "$@" #&& return
+ fi
+ if (( ind = ${words[(I)-F]} )); then
+   config=${~words[ind+1]} 2>/dev/null
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/zsh.git/commitdiff/f45d317fdd4566d3ab7fa2681d7b47d3614217c1



More information about the pld-cvs-commit mailing list