Liste des Groupes | Revenir à col misc |
Rich <rich@example.invalid> wrote:Torvalds did not "allow newlines". Unix filesystems, long before>
Linux ever existed, have only disallowed two characters in filenames:
ASCII null (because C strings are ASCII null terminated)
The forward slash (/) (because forward slash is used as the directory
separator).
Torvalds was simply following standard Unix protocol (in order to be
compatible with Unix standards) for what was "allowed" to be in a
filename.
Perhaps, but since he wasn't using existing UNIX filesystems and
using a custom one instead, it seems to me like he had a choice.
After all you can still use FAT or NTFS on Linux even though they
have more disallowed filename characters. It could have been the
same with ext* forbidding newlines (also tmpfs etc.). Then you'd
only have to worry about handling newlines in the rare case of
reading from some non-Linux filesystems like UFS.
Les messages affichés proviennent d'usenet.