summaryrefslogtreecommitdiff
path: root/Shell/Tests
diff options
context:
space:
mode:
authorAnotherTest <ali.mpfard@gmail.com>2020-07-29 04:15:33 +0430
committerAndreas Kling <kling@serenityos.org>2020-07-30 18:47:41 +0200
commit07ea2b672b9061a07923b3ecd5c2206a6c8e2a18 (patch)
tree446ac738859916ce958cee5c9993ec35002b4eee /Shell/Tests
parent6df2f8a8cb652c6a325c8bf65dd7187699f3713c (diff)
downloadserenity-07ea2b672b9061a07923b3ecd5c2206a6c8e2a18.zip
Shell: Tweak tests to use 'echo -n' when newlines are significant
Diffstat (limited to 'Shell/Tests')
-rw-r--r--Shell/Tests/valid.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/Shell/Tests/valid.sh b/Shell/Tests/valid.sh
index 27f02bc128..6453d5f21b 100644
--- a/Shell/Tests/valid.sh
+++ b/Shell/Tests/valid.sh
@@ -85,7 +85,7 @@ rm -fr sh-test
# Setopt
setopt --inline_exec_keep_empty_segments
-test "$(echo "a\n\nb")" = "a b" || fail inline_exec_keep_empty_segments has no effect
+test "$(echo -n "a\n\nb")" = "a b" || fail inline_exec_keep_empty_segments has no effect
setopt --no_inline_exec_keep_empty_segments
-test "$(echo "a\n\nb")" = "a b" || fail cannot unset inline_exec_keep_empty_segments
+test "$(echo -n "a\n\nb")" = "a b" || fail cannot unset inline_exec_keep_empty_segments