| Deutsch English Français Italiano |
|
<681be760@news.ausics.net> View for Bookmarking (what is this?) Look up another Usenet article |
Message-ID: <681be760@news.ausics.net>
From: not@telling.you.invalid (Computer Nerd Kev)
Subject: Re: Case Insensitive File Systems -- Torvalds Hates Them
Newsgroups: comp.os.linux.misc
References: <pan$4068a$3910f4f1$8cbecede$9e42905e@linux.rocks> <20250428111242.00007426@gmail.com> <pan$c046d$e87ef491$a3427b7a$ac576dbc@linux.rocks> <slrn1011nu8.46v.rotflol2@geidiprime.bvh> <vurjl9$2pskn$1@dont-email.me> <slrn1013t50.1aev.rotflol2@geidiprime.bvh> <vAGdnR-Fj9qGS4_1nZ2dnZfqn_udnZ2d@giganews.com> <slrn1016uic.2qk.rotflol2@geidiprime.bvh> <m7hgt7F8mvgU5@mid.individual.net> <6813f997@news.ausics.net> <vvbe5q$1em7m$1@dont-email.me> <68194581@news.ausics.net> <vvbook$1oubc$1@dont-email.me> <681aa121@news.ausics.net> <wwvcyckspu8.fsf@LkoBDZeT.terraraq.uk> <3aorelxelu.ln2@Telcontar.valinor> <wwv7c2sf69b.fsf@LkoBDZeT.terraraq.uk>
User-Agent: tin/2.0.1-20111224 ("Achenvoir") (UNIX) (Linux/2.4.31 (i586))
NNTP-Posting-Host: news.ausics.net
Date: 8 May 2025 09:06:11 +1000
Organization: Ausics - https://newsgroups.ausics.net
Lines: 25
X-Complaints: abuse@ausics.net
Path: ...!news.misty.com!weretis.net!feeder9.news.weretis.net!news.bbs.nz!news.ausics.net!not-for-mail
Bytes: 2405
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.html
Of 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.
--
__ __
#_ < |\| |< _#