Re:I made an ls alternative for my personal use
by CJefferson on Sunday November 24, 2024 @03:30PM
(#42230276)
Linux isn't POSIX compliant, and as far as I know has no plans to ban newlines in filenames, or even add an option to disable newlines.
[ Parent
| on HN ]
Re:I made an ls alternative for my personal use
by pyuser583 on Sunday November 24, 2024 @10:44PM
(#42233049)
I know Linux allows newlines in filenames, but every time I hear it I want to drink.
Re:I made an ls alternative for my personal use
by machinestops on Monday November 25, 2024 @02:21AM
(#42233979)
In past, there have been Linux-based operating systems that have been certified as Single Unix Specification compliant, and part of said specification is POSIX. I would imagine GNU and Busybox and Musl will be willing to implement the changes proposed by POSIX 2024, which inevitably leads down the road of newlines being banned.
Re:I made an ls alternative for my personal use
by CJefferson on Monday November 25, 2024 @03:50PM
(#42240029)
Howw would that work? Checking strings passed to open and rejecting them? Would we then have undeletable files, as we can't refer to their filenames?