From eb7e30f818900410d3adcd85930cea7c09ab336d Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sat, 14 Oct 2017 09:48:30 -0400 Subject: [PATCH] added sort to uniquifier; uniq wants sorted input --- scripts/core/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" } -- 2.34.1