Re:Filenames and Pathnames in Shell: How to Do It Correctly
by eviks on Tuesday June 20, 2023 @12:15AM
(#36399636)
What do you think the chances are of removing the bag of bytes filename design bug in another decade?
Re:Filenames and Pathnames in Shell: How to Do It Correctly
by dwheeler on Tuesday June 20, 2023 @12:23AM
(#36399691)
Low. It wouldn't be hard to create an LSM for Linux to reject file creation of certain filenames, though. Then at least sone security-minded people could enable it.
The POSIX folks are finally adding formal support for null terminated filenames in filename lists (which is what a lot of people are doing). So that's something.
The explanation is further down on the page. If I wrote in that recommended order, many other developers would complain "I don't want all the details, just tell me what to do".
I wrote it this way because some developers just want the tl;dr version, that is, they "just want the answer"