|
|
|
|
|
by cetu86
4609 days ago
|
|
Very interesting discussion. Here are my 2 cents:
I agree, that how shell handles filesnames and confuses them with commands is inherently broken. I would like to focus on whtat filenames are supposed to be.
In my understanding filenames are supposed to be like booktitles or labels on goods like in the supermarket.
So they are not supposed to contain random binary data. That is what file's contents are for. Filenames should however contain any printable character that you expect on a label. And no fake characters like beep or linefeed. But they should be fully international. I mean this is the 21st century! :-)
In order to define printable characters you also need to define a character encoding.
Unicode clearly defines 2 sets of control characters c0 and c1. I would exclude these two sets, but allow any other unicode character.
I now there is an argument about which unicode encoding is better (utf8, utf16, the way apple encodes unicode vs the way everyone else does, ...)
Maybe one could define the filesystem's encoding inside it and even give the kernel a translation layer between the ondisk encoding and the one visible to the user. |
|