diff options
author | Andrew Ilijic <ilijic.andrew@gmail.com> | 2019-10-28 17:07:35 -0400 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-10-31 22:24:11 -0500 |
commit | 342c088a70c6d7ccb02521b430b2fb0125611ed8 (patch) | |
tree | f7608bfa94d9cce8af4f5e68e1d62a511918b622 /toys/posix/patch.c | |
parent | 4885e8fea8f76d6ec4ba791bce56d70c4a5ded01 (diff) | |
download | toybox-342c088a70c6d7ccb02521b430b2fb0125611ed8.tar.gz |
ls: Remove trailing whitespace so that tests pass
When in modes `-C` and `-x` we need to remove the trailing whitespace
on each line. This is the behavior of other `ls` commands.
Other `ls` commands will print the last filename and then print a
newline. Prior to this patch we would print the last filename, followed
by two spaces, and then print a newline.
Previously, we would get to the end of the loop and print the padding.
I couldn't figure out a way to determine when the program had reached
the end of a line. So I piggybacked off of the newline code.
Diffstat (limited to 'toys/posix/patch.c')
0 files changed, 0 insertions, 0 deletions