There’s an argument to be made that system software like filesystems and kernels shouldn’t get too smart about validating or transforming strings, because once you start caring about a strings meaning, you can no longer treat it as just a byte sequence and instead need to worry about all the complexities of Unicode code points. “Is this character printable” seems like a simple question but it really isn’t.
Now if I were to develop a filesystem from scratch, would I go for the 80% solution of just banning the ASCII newline specifically? Honestly yes, I don’t see a downside. But regardless of how much effort is put into it, there will always be edge cases – either filenames that break stuff, or filenames that aren’t allowed even though they should be.
Nu’s
find
builtin isn’t a GNUfind
repacement. I think what you actually want isls
piped intowhere
:I do question the choice to alias a well-known program with a builtin that does something entirely different. You can also use
^find
to avoid calling the builtin. I would’ve expected\find
(bash-like) orcommand find
(fish-like) to work as well, but alas…