From a0ff2aad3a0919baef37489dbd121fa0ef6d19c4 Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Tue, 12 Aug 2014 16:28:33 +0000 Subject: Yarns: Preserve the output of morph foo in out-foo --- yarns/morph.shell-lib | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/yarns/morph.shell-lib b/yarns/morph.shell-lib index 05c11bcc..9d67f2ab 100644 --- a/yarns/morph.shell-lib +++ b/yarns/morph.shell-lib @@ -37,11 +37,12 @@ run_morph() { { set +e - "$SRCDIR"/morph \ + "$SRCDIR"/morph --verbose \ --cachedir-min-space=0 --tempdir-min-space=0 \ --no-default-config --config "$DATADIR/morph.conf" "$@" \ - 2> "$DATADIR/result-$1" + 2> "$DATADIR/result-$1" > "$DATADIR/out-$1" local exit_code="$?" + cat "$DATADIR/out-$1" cat "$DATADIR/result-$1" >&2 return "$exit_code" } -- cgit v1.2.1