Liste des Groupes | Revenir à ol misc |
Rich <rich@example.invalid> wrote:The -print0 "workaround" as you call it is not there "just for>
newlines". Banning newlines would not help with the need for -print0.
-print0 also helps with preventing all the other shell metacharacters
and spaces from also causing trouble when piping filenames through all
the various tools.
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.
Les messages affichés proviennent d'usenet.