Filesystems and case-insensitivity
Filesystems and case-insensitivity
Posted Nov 29, 2018 13:41 UTC (Thu) by utoddl (guest, #1232)In reply to: Filesystems and case-insensitivity by perennialmind
Parent article: Filesystems and case-insensitivity
Posted Nov 30, 2018 9:04 UTC (Fri)
by jezuch (subscriber, #52988)
[Link] (2 responses)
Posted Dec 3, 2018 12:30 UTC (Mon)
by ale2018 (guest, #128727)
[Link] (1 responses)
Ah, poorly written shell scripts, eh? Because you obviously think that being slave of over-complicated command lines is fine? A good percentage of my command lines start with When I find a filename with spaces I just move it away.
For the record, the normalization step and control characters were never taken care of. For example:
Posted Dec 3, 2018 20:24 UTC (Mon)
by flussence (guest, #85566)
[Link]
Filesystems and case-insensitivity
Filesystems and case-insensitivity
find . -name whatever | xargs
... Yes, I know I can write -print0
and -0
, I do that when I write shell scripts.
~$ touch aaabd $(printf 'aaabc\bd') "$(printf 'aaabc\nd')"
~$ ls -lt | head -5
total 3686968
-rw-r--r-- 1 ale ale 0 Dec 3 13:21 aaabd
-rw-r--r-- 1 ale ale 0 Dec 3 13:21 aaabc
d
-rw-r--r-- 1 ale ale 0 Dec 3 13:21 aaabd
Control characters where never forbidden. Consider that human beings are sometimes uncertain about the name they're typing and type a backspace (\b)
in it. So, why isn't that beautiful too? Perhaps, users should have a clue. In the words of the Ancient Philosophy, rubbish in, rubbish out.
ls took care of that a few years ago…
Filesystems and case-insensitivity
~/test $ ls
'aaabc'$'\b''d' 'aaabc'$'\n''d' aaabd
~/test $ ls --version
ls (GNU coreutils) 8.30
Packaged by Gentoo (8.30 (p01))