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)
|
||||
COMPREPLY=( $( apt-cache dumpavail | \
|
||||
grep "^Source: $cur" | sort | \
|
||||
uniq | cut -f2 -d" " ) )
|
||||
grep "^Source: $cur" | sort -u | cut -f2 -d" " ) )
|
||||
return 0
|
||||
;;
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user