diff options
author | Jakob Kaivo <jkk@ung.org> | 2022-04-11 16:40:45 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2022-04-11 16:40:45 -0400 |
commit | 56008cedc6068d6b6e47c4d724e766525ae858b6 (patch) | |
tree | a23f72a5d842b9d428947168c772d4d6cb121865 | |
parent | 5110660d1762483a818a3bc4326fbfece57dd146 (diff) |
remove extra newline when no dir operands
-rw-r--r-- | ls.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) { |