mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00:00
Shell: Tweak tests to use 'echo -n' when newlines are significant
This commit is contained in:
parent
6df2f8a8cb
commit
07ea2b672b
Notes:
sideshowbarker
2024-07-19 04:27:29 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/07ea2b672b9 Pull-request: https://github.com/SerenityOS/serenity/pull/2907 Reviewed-by: https://github.com/awesomekling
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…
Reference in a new issue