From 725098856a248147d99f270edcbaa6af8259cc5f Mon Sep 17 00:00:00 2001 From: Markus Raab Date: Mon, 4 Dec 2017 14:28:27 +0100 Subject: [PATCH] shell_recorder: newline before UTF character fixes copy&paste problem for konsole --- tests/shell/shell_recorder/README.md | 6 ++++-- tests/shell/shell_recorder/shell_recorder.sh | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/shell/shell_recorder/README.md b/tests/shell/shell_recorder/README.md index 3616044798b..2f1a18ab7eb 100644 --- a/tests/shell/shell_recorder/README.md +++ b/tests/shell/shell_recorder/README.md @@ -61,7 +61,8 @@ does not match โ€œNaNaNaNaNaNaNaโ€ shell_recorder /Users/rene/Documents/test.esr RESULTS: 2 test(s) done 2 error(s). -๐Ÿ“• Protocol File: /var/folders/hx/flbncdhj4fs87095gzxvnj3h0000gn/T/elektraenv.XXXXXXXXX.gWyTCr2O +๐Ÿ“• +Protocol File: /var/folders/hx/flbncdhj4fs87095gzxvnj3h0000gn/T/elektraenv.XXXXXXXXX.gWyTCr2O ``` . We see that both checks failed. The protocol file at the end of the output contain the real output and return value of the command: @@ -192,7 +193,8 @@ the protocol file in itโ€™s output: ``` โ€ฆ -๐Ÿ“• Protocol File: /var/folders/hx/flbncdhj4fs87095gzxvnj3h0000gn/T/elektraenv.XXXXXXXXX.MyZLuGKE +๐Ÿ“• +Protocol File: /var/folders/hx/flbncdhj4fs87095gzxvnj3h0000gn/T/elektraenv.XXXXXXXXX.MyZLuGKE ``` diff --git a/tests/shell/shell_recorder/shell_recorder.sh b/tests/shell/shell_recorder/shell_recorder.sh index 69f056e4dea..bb8487de98f 100755 --- a/tests/shell/shell_recorder/shell_recorder.sh +++ b/tests/shell/shell_recorder/shell_recorder.sh @@ -311,7 +311,7 @@ fi if [ "$EVAL" -eq 0 ] && [ $keepProtocol == 'false' ]; then rm -f "$OutFile" else - >&2 printf '\n๐Ÿ“• Protocol File: %s\n' "$OutFile" + >&2 printf '\n๐Ÿ“•\nProtocol File: %s\n' "$OutFile" fi rm "${TMPFILE}"