mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 20:33:10 +00:00
Shell: Tweak tests to use 'echo -n' when newlines are significant
This commit is contained in:
parent
6df2f8a8cb
commit
07ea2b672b
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue