From 3ede178eb3744b20cbec03f306cd0eeb79947bd8 Mon Sep 17 00:00:00 2001 From: Nils Steinger Date: Wed, 20 Feb 2019 15:42:06 +0100 Subject: [PATCH] Redirect time statistics to stdout (fixes #4) --- nench.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nench.sh b/nench.sh index 7a341a1..b7d4b56 100755 --- a/nench.sh +++ b/nench.sh @@ -61,8 +61,8 @@ command_benchmark() if command_exists "$1" then - time "$gnu_dd" if=/dev/zero bs=1M count=500 2> /dev/null | \ - "$@" > /dev/null + ( time "$gnu_dd" if=/dev/zero bs=1M count=500 2> /dev/null | \ + "$@" > /dev/null ) 2>&1 else if [ "$QUIET" -ne 1 ] then