4 ms·
If `ls` can't render a filename that is legal under the POSIX specs, there are two possibilities: - `ls` is wrong and should be fixed. - The specs are wrong a
by WJW 5y ago
If `ls` can't render a filename that is legal under the POSIX specs, there are two possibilities:
- `ls` is wrong and should be fixed.
- The specs are wrong and should not allow filenames to be arbitrary bytesequences.
The third option ("The user is wrong even though they did exactly what was in the spec") is just unsatisfactory because it self-contradicts.
- shadowgovt 5y agoSpecs are a three-edged sword: the spec, the intent, and the implementation. And "The user is wrong even though they did exactly what was in the spec" is pretty much the rule, not the exception.