So we all know you shouldn't parse ls for many reasons, mostly due to filenames allowing almost every character. However why has nobody been able to overcome this in an implementation of ls?
Many commands have a command line argument that will output parsable text to stdout, often csv format. Now I know filenames can have commas but so can csv files, that is a simple fix using double quotes. I guess another issue would be that filenames could also contain double quotes, but I still refuse that the open source hivemind couldn't find some solution to this. What is preventing someone from implementing a parsable option for ls?
ls
-b
and-Q
options count? – Stephen Kitt Feb 05 '21 at 20:02ls
is only intended for "human consumption"; related; see here – JRFerguson Feb 05 '21 at 20:09