diff --git a/apps/ls.cpp b/apps/ls.cpp index d5f5aeef..1f62f590 100644 --- a/apps/ls.cpp +++ b/apps/ls.cpp @@ -49,7 +49,7 @@ Result luna_main(int argc, char** argv) if (!long_list) { auto list = TRY(String::join(files, " "_sv)); - os::println("%s", list.chars()); + if (!list.is_empty()) os::println("%s", list.chars()); } else {