Use sort -u instead of sort | uniq where appropriate.
This commit is contained in:
parent
cbf7e1f963
commit
0f25d9c66f
@ -98,8 +98,7 @@ _apt_cache()
|
|||||||
|
|
||||||
showsrc)
|
showsrc)
|
||||||
COMPREPLY=( $( apt-cache dumpavail | \
|
COMPREPLY=( $( apt-cache dumpavail | \
|
||||||
grep "^Source: $cur" | sort | \
|
grep "^Source: $cur" | sort -u | cut -f2 -d" " ) )
|
||||||
uniq | cut -f2 -d" " ) )
|
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ _mcrypt()
|
|||||||
-m|--mode)
|
-m|--mode)
|
||||||
COMPREPLY=( $( compgen -W "$( mcrypt --list \
|
COMPREPLY=( $( compgen -W "$( mcrypt --list \
|
||||||
2>/dev/null | sed -e 's/.*: //' -e 's/ $//' | \
|
2>/dev/null | sed -e 's/.*: //' -e 's/ $//' | \
|
||||||
sort | uniq )" -- "$cur" ) )
|
sort -u )" -- "$cur" ) )
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
-a|--algorithm)
|
-a|--algorithm)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user