From e599a9561cf26562bc359be4cc7c77148e7bab6a Mon Sep 17 00:00:00 2001 From: John D Pell Date: Wed, 8 Sep 2021 16:01:11 -0700 Subject: [PATCH] lib/utilities: fix `_bash-it-component-list-matching()` Use `sort -u` instead of `sort | uniq` --- lib/utilities.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utilities.bash b/lib/utilities.bash index 4aecc16a..c6919a08 100644 --- a/lib/utilities.bash +++ b/lib/utilities.bash @@ -125,7 +125,7 @@ _bash-it-component-list() { _bash-it-component-list-matching() { local component="$1"; shift local term="$1" - _bash-it-component-help "${component}" | $(_bash-it-grep) -E -- "${term}" | awk '{print $1}' | sort | uniq + _bash-it-component-help "${component}" | $(_bash-it-grep) -E -- "${term}" | awk '{print $1}' | sort -u } _bash-it-component-list-enabled() {