Re: [Toybox] [PATCH 1/2] ls: Add tests for `-C` and `-x` options

2019-10-28 Thread Andrew Ilijic
Hi Rob, These two patches should work. The code in "...Remove-trailing..." is different from what we discussed. > - if (curcol < 255) printf("%*c", curcol, ' '); > + // Use dtlen and ul to not print spaces when we are at the end > + if (curcol < 255 && ((dtlen - ul - 1) > 0)) print

[Toybox] [PATCH 1/2] ls: Add tests for `-C` and `-x` options

2019-10-24 Thread Andrew Ilijic
For context see the mailing list link below. https://www.mail-archive.com/toybox@lists.landley.net/msg05991.html >From fe97757c4a9a3b1b917727d1db207f4d3c478c92 Mon Sep 17 00:00:00 2001 From: Andrew Ilijic Date: Thu, 24 Oct 2019 09:09:28 -0400 Subject: [PATCH 1/2] ls: Add tests for `-C` and `-x` o