3 ms·
Or... ls could just escape filenames. I'm not sure why it seemingly doesn't in the year 2021.
by ravenstine 5y ago
Or... ls could just escape filenames.
I'm not sure why it seemingly doesn't in the year 2021.
- harry8 5y agols -Q --quoting-style=xxx ?
- dspillett 5y agoFrom “man ls”: -b, --escape print C-style escapes for nongraphic characters I'd also add: -1 list one file per line. Avoid '\n' with -q or -b to make sure you can easily split the list by just the EOL, in case for some reason it thinks it is talking to a terminal and tries for format things for a human.