News for hackers. Stuff that matters.
Re:Sl: a mirror version of ls by gue5t on Friday March 30, 2018 @10:48AM (#16716522)
This code is incorrect: it has a a race condition that can cause it to use the wrong maximum width in its listing.
Re:Sl: a mirror version of ls by joombaga on Friday March 30, 2018 @11:37AM (#16716965)
I'm not seeing it. Can you elaborate?
Re:Sl: a mirror version of ls by pcdavid on Friday March 30, 2018 @11:42AM (#16717021)
It invokes "ls" twice. There's no guarantee the maximum width obtained from the first invocation is still correct for formatting the result of the second.