mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:37:36 +00:00
Shell: Tweak tests to use 'echo -n' when newlines are significant
This commit is contained in:
parent
6df2f8a8cb
commit
07ea2b672b
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue