[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 0f25d9c66f43a01ac793e040e1ca123a13b24adc
Ville Skyttä
ville.skytta at iki.fi
Wed Dec 9 21:56:26 UTC 2009
The following commit has been merged in the master branch:
commit 0f25d9c66f43a01ac793e040e1ca123a13b24adc
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Wed Dec 9 23:55:27 2009 +0200
Use sort -u instead of sort | uniq where appropriate.
diff --git a/contrib/apt b/contrib/apt
index 884fc3e..5c72b95 100644
--- a/contrib/apt
+++ b/contrib/apt
@@ -98,8 +98,7 @@ _apt_cache()
showsrc)
COMPREPLY=( $( apt-cache dumpavail | \
- grep "^Source: $cur" | sort | \
- uniq | cut -f2 -d" " ) )
+ grep "^Source: $cur" | sort -u | cut -f2 -d" " ) )
return 0
;;
diff --git a/contrib/mcrypt b/contrib/mcrypt
index b4c7bc3..3186278 100644
--- a/contrib/mcrypt
+++ b/contrib/mcrypt
@@ -22,7 +22,7 @@ _mcrypt()
-m|--mode)
COMPREPLY=( $( compgen -W "$( mcrypt --list \
2>/dev/null | sed -e 's/.*: //' -e 's/ $//' | \
- sort | uniq )" -- "$cur" ) )
+ sort -u )" -- "$cur" ) )
return 0
;;
-a|--algorithm)
--
bash-completion
More information about the Bash-completion-commits
mailing list