Use sort -u instead of sort | uniq where appropriate.

This commit is contained in:
Ville Skyttä 2009-12-09 23:55:27 +02:00
parent cbf7e1f963
commit 0f25d9c66f
2 changed files with 2 additions and 3 deletions

View File

@ -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
;;

View File

@ -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)