[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 2afa079ff5b7f930bad0352144ee4eb1b711ad8f

Freddy Vulto fvulto at gmail.com
Sat Jun 13 10:28:10 UTC 2009


The following commit has been merged in the master branch:
commit 2afa079ff5b7f930bad0352144ee4eb1b711ad8f
Author: Freddy Vulto <fvulto at gmail.com>
Date:   Sat Jun 13 12:25:36 2009 +0200

    Changed calls to _known_hosts > _known_hosts_real

diff --git a/contrib/dhclient b/contrib/dhclient
index 0b466d7..49497f7 100644
--- a/contrib/dhclient
+++ b/contrib/dhclient
@@ -17,7 +17,7 @@ have dhclient && _dhclient()
 			return 0
 			;;
 		-s)
-			_known_hosts
+			_known_hosts_real -h "$cur"
 			return 0
 			;;
 	esac
diff --git a/contrib/dsniff b/contrib/dsniff
index 93243c4..3561ec5 100644
--- a/contrib/dsniff
+++ b/contrib/dsniff
@@ -20,7 +20,7 @@ _arpspoof()
 			return 0
 			;;
 		-t)
-			_known_hosts
+			_known_hosts_real -h "$cur"
 			return 0
 			;;
 	esac
@@ -28,7 +28,7 @@ _arpspoof()
 	if [[ "$cur" == -* ]]; then
 		COMPREPLY=( $( compgen -W '-i -t' -- $cur ) )
 	else
-		_known_hosts
+		_known_hosts_real -h "$cur"
 	fi
 
 } &&
@@ -157,7 +157,7 @@ _sshmitm()
 	if [[ "$cur" == -* ]]; then
 		COMPREPLY=( $( compgen -W '-d -I -p' -- $cur ) )
 	else
-		_known_hosts
+		_known_hosts_real -h "$cur"
 	fi
 
 } &&
@@ -276,7 +276,7 @@ _webmitm()
 	if [[ "$cur" == -* ]]; then
 		COMPREPLY=( $( compgen -W '-d' -- $cur ) )
 	else
-		_known_hosts
+		_known_hosts_real -h "$cur"
 	fi
 
 } &&
diff --git a/contrib/freeciv b/contrib/freeciv
index f01a08d..4e69e36 100644
--- a/contrib/freeciv
+++ b/contrib/freeciv
@@ -50,7 +50,7 @@ _civclient()
 			return 0
 			;;
 		-@(s|-server))
-			_known_hosts
+			_known_hosts_real -h "$cur"
 			return 0
 			;;
 	esac
diff --git a/contrib/gkrellm b/contrib/gkrellm
index f044990..61d961d 100644
--- a/contrib/gkrellm
+++ b/contrib/gkrellm
@@ -22,7 +22,7 @@ _gkrellm()
 			return 0
 			;;
 		-@(s|-server))
-			_known_hosts
+			_known_hosts_real -h "$cur"
 			return 0
 			;;
 	esac
diff --git a/contrib/heimdal b/contrib/heimdal
index 1c0f847..14b26fc 100644
--- a/contrib/heimdal
+++ b/contrib/heimdal
@@ -47,7 +47,7 @@ _ktutil()
 			return 0
 			;;
 		-a|--admin-server)
-			_known_hosts
+			_known_hosts_real -h "$cur"
 			return 0
 			;;
 		-r|--realm)
diff --git a/contrib/ldapvi b/contrib/ldapvi
index 324f548..e2bde64 100644
--- a/contrib/ldapvi
+++ b/contrib/ldapvi
@@ -14,7 +14,7 @@ _ldapvi()
 
 	case "$prev" in
 		-@(h|-host))
-			_known_hosts
+			_known_hosts_real -h "$cur"
 			return 0
 			;;
 		-@(Y|-sasl-mech))
diff --git a/contrib/munin-node b/contrib/munin-node
index 6dee174..4b49b3a 100644
--- a/contrib/munin-node
+++ b/contrib/munin-node
@@ -48,7 +48,7 @@ _munin-update()
 			return 0
 			;;
 		--host)
-			_known_hosts
+			_known_hosts_real -h "$cur"
 			return 0
 			;;
 	esac
@@ -81,7 +81,7 @@ _munin-node-configure()
 			return 0
 			;;
 		--snmp)
-			_known_hosts
+			_known_hosts_real -h "$cur"
 			return 0
 			;;
 		--snmpversion)
diff --git a/contrib/ntpdate b/contrib/ntpdate
index 3d5f2b3..90c4563 100644
--- a/contrib/ntpdate
+++ b/contrib/ntpdate
@@ -27,7 +27,7 @@ _ntpdate()
 		COMPREPLY=( $( compgen -W '-4 -6 -b -B -d -Q -q -s -u -v -a\
 			-e -k -p -o -r -t' -- $cur ) )
 	else
-		_known_hosts
+		_known_hosts_real -h "$cur"
 	fi
 } &&
 complete -F _ntpdate ntpdate
diff --git a/contrib/openldap b/contrib/openldap
index 820c4f8..a53577b 100644
--- a/contrib/openldap
+++ b/contrib/openldap
@@ -24,7 +24,7 @@ _ldapsearch()
 
 	case "$prev" in
 		-h)
-			_known_hosts
+			_known_hosts_real -h "$cur"
 			return 0
 			;;
 		-H)
@@ -73,7 +73,7 @@ _ldapaddmodify()
 
 	case "$prev" in
 		-h)
-			_known_hosts
+			_known_hosts_real -h "$cur"
 			return 0
 			;;
 		-H)
@@ -111,7 +111,7 @@ _ldapdelete()
 
 	case "$prev" in
 		-h)
-			_known_hosts
+			_known_hosts_real -h "$cur"
 			return 0
 			;;
 		-H)
@@ -146,7 +146,7 @@ _ldapcompare()
 
 	case "$prev" in
 		-h)
-			_known_hosts
+			_known_hosts_real -h "$cur"
 			return 0
 			;;
 		-H)
@@ -181,7 +181,7 @@ _ldapmodrdn()
 
 	case "$prev" in
 		-h)
-			_known_hosts
+			_known_hosts_real -h "$cur"
 			return 0
 			;;
 		-H)
@@ -216,7 +216,7 @@ _ldapwhoami()
 
 	case "$prev" in
 		-h)
-			_known_hosts
+			_known_hosts_real -h "$cur"
 			return 0
 			;;
 		-H)
@@ -250,7 +250,7 @@ _ldappasswd()
 
 	case "$prev" in
 		-h)
-			_known_hosts
+			_known_hosts_real -h "$cur"
 			return 0
 			;;
 		-H)
diff --git a/contrib/openssl b/contrib/openssl
index 3903953..bd5b0a0 100644
--- a/contrib/openssl
+++ b/contrib/openssl
@@ -84,7 +84,7 @@ _openssl()
 				return 0
 				;;
 			-connect)
-				_known_hosts
+				_known_hosts_real -h "$cur"
 				return 0
 				;;
 			-starttls)
diff --git a/contrib/postgresql b/contrib/postgresql
index cdd3ca1..94b811b 100644
--- a/contrib/postgresql
+++ b/contrib/postgresql
@@ -34,7 +34,7 @@ _createdb()
 
 	case "$prev" in
 		-h|--host)
-			_known_hosts
+			_known_hosts_real -h "$cur"
 			return 0
 			;;
 		-U|--username|-O|--owner)
@@ -78,7 +78,7 @@ _dropdb()
 
 	case "$prev" in
 		-h|--host)
-			_known_hosts
+			_known_hosts_real -h "$cur"
 			return 0
 			;;
 		-U|--username)
@@ -117,7 +117,7 @@ _psql()
 
 	case "$prev" in
 		-h|--host)
-			_known_hosts
+			_known_hosts_real -h "$cur"
 			return 0
 			;;
 		-U|--username)
diff --git a/contrib/rdesktop b/contrib/rdesktop
index ba941ee..e35b2aa 100644
--- a/contrib/rdesktop
+++ b/contrib/rdesktop
@@ -46,7 +46,7 @@ _rdesktop()
 			-A -B -e -E -m -C -D -K -S -T -N -X -a -z -x -P -r \
 			-0 -4 -5' -- $cur ) )
 	else
-		_known_hosts
+		_known_hosts_real -h "$cur"
 	fi
 
 } &&
diff --git a/contrib/rsync b/contrib/rsync
index c7f197f..86a5c49 100644
--- a/contrib/rsync
+++ b/contrib/rsync
@@ -87,7 +87,7 @@ _rsync()
 		fi
 		;;
 	*)
-		_known_hosts -c -a
+		_known_hosts_real -c -a -h "$cur"
 		_filedir
 		;;
 	esac
diff --git a/contrib/vpnc b/contrib/vpnc
index 73bc0f0..8197107 100644
--- a/contrib/vpnc
+++ b/contrib/vpnc
@@ -27,7 +27,7 @@ _vpnc()
 			return 0
 			;;
 		--gateway)
-			_known_hosts
+			_known_hosts_real -h "$cur"
 			return 0
 			;;
 	esac
diff --git a/contrib/xm b/contrib/xm
index 2de5c9a..859a0f3 100644
--- a/contrib/xm
+++ b/contrib/xm
@@ -97,7 +97,7 @@ _xm()
 							_xen_domain_names
 							;;
 						3)
-							_known_hosts
+							_known_hosts_real -h "$cur"
 							;;
 					esac
 					;;

-- 
bash-completion



More information about the Bash-completion-commits mailing list