From: Chris Koeritz Date: Sat, 14 Oct 2017 13:48:30 +0000 (-0400) Subject: added sort to uniquifier; uniq wants sorted input X-Git-Tag: 2.140.90~138 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=eb7e30f818900410d3adcd85930cea7c09ab336d;p=feisty_meow.git added sort to uniquifier; uniq wants sorted input --- diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index 6c6832ae..c8bcfe34 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -87,7 +87,7 @@ if [ -z "$skip_all" ]; then HOLDIFS="$IFS" IFS=' ' # do the uniquification. - echo $* | uniq + echo $* | sort | uniq # return the former eol characters to their place. IFS="$HOLDIFS" }