3 ms·
It should be noted that `ls` is kinda of a (interactive convenience) special case by itself, if you really need to parse `ls` output, you're in a world of hurt
by ElectricalUnion 3y ago
It should be noted that `ls` is kinda of a (interactive convenience) special case by itself, if you really need to parse `ls` output, you're in a world of hurt on any conventional raw_byte_stream+pipes based shell [1]. Most (non-interactive) tasks done with ls should instead be done with other, safer shell builtins or more appropriate tools.
[1] https://mywiki.wooledge.org/ParsingLs https://mywiki.wooledge.org/ParsingLs
- hnlmorg 3y agoI completely agree. Murex also includes a few machine parseable builtins for this reason: https://murex.rocks/docs/tour.html#filesystem-wildcards-globbing https://murex.rocks/docs/tour.html#filesystem-wildcards-glob... But I do think being able to work with your systems coreutils is a valuable convenience too.