Sujet : Re: Case Insensitive File Systems -- Torvalds Hates Them
De : mh+usenetspam1118 (at) *nospam* zugschl.us (Marc Haber)
Groupes : comp.os.linux.miscDate : 09. May 2025, 06:06:56
Autres entêtes
Organisation : private site, see http://www.zugschlus.de/ for details
Message-ID : <vvk2hg$1io7n$1@news1.tnib.de>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
User-Agent : Forte Agent 6.00/32.1186
not@telling.you.invalid (Computer Nerd Kev) wrote:
No, the GNU Find man page says:
"-print0, -fprint0
Always print the exact filename, unchanged, even if the output is
going to a terminal."
>
Which is the same as the default -print if the output isn't to a
terminal, except -print0 uses null instead of newline to separate
filenames because they're a particular problem. Other special
characters aren't as problematic.
The shell tokenizes at whitespace, and a newline is often treated as
whitespace. -print0 is the canonical protection that makes your script
handle spaces in newlines correctly, and THOSE are rather common in
file names. Look in your music directory for examples.
You've gotten yourself into something in this discussion. Better take
a step back to stop embarrassing yourself.
-- ----------------------------------------------------------------------------Marc Haber | " Questions are the | Mailadresse im HeaderRhein-Neckar, DE | Beginning of Wisdom " | Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 6224 1600402