summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ls.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ls.c b/ls.c
index 8ec0ae2..0f7d498 100644
--- a/ls.c
+++ b/ls.c
@@ -589,7 +589,9 @@ int main(int argc, char *argv[])
if (nfiles > 0) {
qsort(operands, nfiles, sizeof(operands[0]), ls_compare_files);
ls_print(nfiles, operands);
- printf("\n");
+ if (op->path) {
+ printf("\n");
+ }
}
while (op->path != NULL) {