by HocusLocus · 6y ago · 0 comments
Support for other “special” characters in filenames (e.g. newlines), however, could still be debatable.
This causes nothing but problems, all to avoid a simple character filter..
https://www.tecmint.com/manage-linux-filenames-with-special-...
See how many "errors" you can find in that article. There are a bunch, consider the touch *, example if your using rm...
this·is·variable·one
Vs one two three
Now I just use an ergodox ez (qmk-driven) keyboard with _ in an easy spot and snake_case everything but people says it's "ugly" or some bs (camelCase, especially with initialisms, drives me nuts).On the contrary! It is filesystems that support plain spaces in filenames that are broken. Filenames are variable names. Allowing separators in them is bonkers. I make a point of carefully crafting my scripts to wreak havoc whenever a user has spaces in their filenames.
There is no particular reason your shell can't distinguish between a space inside a filename and the space between tokens in output. The fact that you have to do anything at all yourself is a bug.
Sure. But there's no reason why typing the spacebar on a GUI to input your filename should produce a file with a plain space on the filesystem. It could be a unicode non-breaking space, for example.