4 ms·
But they did not make old code correct. Filenames are still allowed to contain newlines. Shell scripts still need to be prepared to deal with that. Nothing real
by zokier 2y ago
But they did not make old code correct. Filenames are still allowed to contain newlines. Shell scripts still need to be prepared to deal with that. Nothing really changed, they just added a feel-good half-measure.
- quotemstr 2y agoIt's a step in the right direction. You have to understand that for decades a vocal group of Unix die-hards has opposed any limitations whatsoever on the bytewise content of file names. The newline restriction in this latest version of POSIX may be modest, but it represents a dam breaking. When (obviously) the sky doesn't fall, the next version of POSIX will have a lot more filename cleanup.
- rixed 2y agoNext step is to forbid newlines from file content itself, to fix conforment json parsers ?
- janderland 2y agoThis is pretty standard for a human run system. Gotta make the human feel good about an idea before they can do said idea. If you’re not familiar with humans, there are several manuals available online.