From 5aafbdc4e890f6d3517e430dba2dabc2aa8110f4 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 11 Nov 2020 20:36:16 +0100 Subject: [PATCH] ls: Add newline after "ls -d" output Fixes #4030. --- Userland/ls.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Userland/ls.cpp b/Userland/ls.cpp index 6625563266..28643ff6b7 100644 --- a/Userland/ls.cpp +++ b/Userland/ls.cpp @@ -422,7 +422,9 @@ int do_file_system_object_short(const char* path) { if (flag_list_directories_only) { size_t nprinted = 0; - if (print_filesystem_object_short(path, path, &nprinted)) + bool status = print_filesystem_object_short(path, path, &nprinted); + printf("\n"); + if (status) return 0; return 2; }