mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 04:47:34 +00:00
echo: Obey -n when text is empty
This commit is contained in:
parent
8e6de62d57
commit
866c9cc1a5
1 changed files with 2 additions and 1 deletions
|
@ -114,6 +114,7 @@ int main(int argc, char** argv)
|
||||||
args_parser.parse(argc, argv);
|
args_parser.parse(argc, argv);
|
||||||
|
|
||||||
if (text.is_empty()) {
|
if (text.is_empty()) {
|
||||||
|
if (!no_trailing_newline)
|
||||||
outln();
|
outln();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue