Sujet : Re: Case Insensitive File Systems -- Torvalds Hates Them
De : not (at) *nospam* telling.you.invalid (Computer Nerd Kev)
Groupes : comp.os.linux.miscDate : 08. May 2025, 00:06:11
Autres entêtes
Organisation : Ausics - https://newsgroups.ausics.net
Message-ID : <681be760@news.ausics.net>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
User-Agent : tin/2.0.1-20111224 ("Achenvoir") (UNIX) (Linux/2.4.31 (i586))
Richard Kettlewell <
invalid@invalid.invalid> wrote:
Second, the issue in shell is is that newlines (or spaces) interact
badly with its approach to string handling: a filename can cause a
script to unexpectedly fail. For all that C has truly awful string
handling, it doesn't go awry just because there's a space or newline in
a string that it's working with.
When dealing with programs like find, sort, uniq etc. it's more of
a data format issue than a shell issue. As in the link from the GNU
find documentation which I supplied before where "find" apparantly
runs "sort" itself and needs that to support null-terminated line
delimiters to handle newlines in filenames, rather than the default
newline-terminated format:
http://www.gnu.org/software/findutils/manual/html_node/find_html/Newline-Handling.htmlOf course a C program can use any character to separate strings,
but newlines are most common in existing UNIX tools for text string
processing, and most easily human-readable, so it's convenient to
use that data format. But it means assuming that newlines in
filenames won't actually appear.
-- __ __#_ < |\| |< _#