From afde2b1b30f57f3a48144fc596c0521c7f15c2d3 Mon Sep 17 00:00:00 2001 From: Thomas Levine <_@thomaslevine.com> Date: Sun, 6 Mar 2016 13:42:52 +0000 Subject: [PATCH] use STDIN interface to sort --- urchin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/urchin b/urchin index 2fa5eaf..0230e42 100755 --- a/urchin +++ b/urchin @@ -281,7 +281,7 @@ report_outcome() { # Use a temporary file rather than a pipe because a pipe starts a sub-shell # and thus makes the above variables local. sorted_log_file=$(mktemp) - "${sort}" "${log_file}" > "${sorted_log_file}" + cat "${log_file}" | "${sort}" > "${sorted_log_file}" while read line; do abspath=$(echo "${line}" | cut -f1)