News for hackers. Stuff that matters.
Re:Things you (probably) didn't know about xargs by billpg on Monday June 27, 2011 @04:36AM (#2700607)
If filenames can contain LF characters, 'find | grep foo' is also wrong.

(Interesting idea with print0, but I fear this is mere symptomatic relief, rather than actually fixing the problem.)

Re:Things you (probably) didn't know about xargs by barrkel on Monday June 27, 2011 @10:28PM (#2703791)
As I already said, newlines[1] are vanishingly rare in filenames (most file manager UIs treat attempts at introducing a newline into the name as as committing the file rename), so I find it useful, so I wrote the utility, which only I use.

How you figure my solution to my problem is only symptomatic treatment, with technical drawbacks I already mentioned but treat as acceptable, is beyond me.

[1] As I mention in a cousin comment to this one, my utility handles all usual ASCII forms of newlines - \r, \n and \r\n (and \n\r for good measure).