diff --git a/lib/utilities.bash b/lib/utilities.bash index 67099b78..4aecc16a 100644 --- a/lib/utilities.bash +++ b/lib/utilities.bash @@ -118,8 +118,8 @@ _bash-it-clean-component-cache() { # Returns an array of items within each compoenent. _bash-it-component-list() { - local component="$1" - _bash-it-component-help "${component}" | awk '{print $1}' | uniq | sort | tr '\n' ' ' + local IFS=$'\n' component="$1" + _bash-it-component-help "${component}" | awk '{print $1}' | sort -u } _bash-it-component-list-matching() {