Full threadjcalvinowens·Not sure how portable it is, but gnu ls has a flag to solve this problem trivially: --zero end each output line with NUL, not newlineView on HN