[Bash-completion-commits] [SCM] bash-completion branch, master, updated. d062d3b5704829a04ed477b93cfb063c3e5f7108
Ville Skyttä
ville.skytta at iki.fi
Sat Oct 31 12:24:08 UTC 2009
The following commit has been merged in the master branch:
commit d062d3b5704829a04ed477b93cfb063c3e5f7108
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Sat Oct 31 14:24:01 2009 +0200
Fix "adr" typo in ssh -b completion, use one sed instead of two awk calls.
diff --git a/CHANGES b/CHANGES
index e283a8d..1a5a84c 100644
--- a/CHANGES
+++ b/CHANGES
@@ -17,7 +17,7 @@ bash-completion (2.x)
* Apply cardctl completion to pccardctl too.
* Apply pine completion to alpine too.
* Remove many unnecessary short option completions where long ones exist.
- * Improve cvs, gkrellm, lftp, mdadm, and mysqladmin completions.
+ * Improve cvs, gkrellm, lftp, mdadm, mysqladmin, and ssh completions.
* Add abook and wtf completion, based on work by Raphaël Droz.
* Add lftpget completion.
* Don't overwrite other host completions when completing from multiple
diff --git a/contrib/ssh b/contrib/ssh
index 8a95f6c..6628352 100644
--- a/contrib/ssh
+++ b/contrib/ssh
@@ -66,7 +66,7 @@ _ssh()
;;
-b)
COMPREPLY=( $( compgen -W "$( PATH="$PATH:/sbin" ifconfig | \
- awk '/adr:/ {print $2}' | awk -F: '{print $2}' )" -- "$cur" ) )
+ sed -ne 's/.*addr:\([^[:space:]]*\).*/\1/p' )" -- "$cur" ) )
return 0
;;
esac
--
bash-completion
More information about the Bash-completion-commits
mailing list