mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 17:58:18 +03:00
echo: Obey -n when text is empty
This commit is contained in:
parent
8e6de62d57
commit
866c9cc1a5
Notes:
sideshowbarker
2024-07-18 01:39:15 +09:00
Author: https://github.com/rtobar Commit: https://github.com/SerenityOS/serenity/commit/866c9cc1a53 Pull-request: https://github.com/SerenityOS/serenity/pull/10738
@ -114,7 +114,8 @@ int main(int argc, char** argv)
|
||||
args_parser.parse(argc, argv);
|
||||
|
||||
if (text.is_empty()) {
|
||||
outln();
|
||||
if (!no_trailing_newline)
|
||||
outln();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user