
On 2013-06-04 21:40, Craig Sanders wrote:
On Tue, Jun 04, 2013 at 08:52:42PM +1000, Brett Pemberton wrote:
Agree on both points, although I'm yet to find a file name containing spaces on my machine.
A few on mine:
http://packages.debian.org/wheezy/amd64/kde-telepathy-text-ui/filelist http://packages.debian.org/wheezy/all/kipi-plugins-common/filelist http://packages.debian.org/wheezy/all/xbmc/filelist
OK, i really must add "-d '\n'" to numerous invocations of xargs in dlocate.
even when i wrote it fifteen years ago i should have used 'tr' to convert newlines into NULs and used 'xargs -0'...it's what i normally did anyway before xargs acquired a '-d' option.
Using tr to convert newlines to \0 for parsing with xargs -0 is no better than using xargs without -0. How does tr know whether a newline is part of the filename, or a delimiter between filenames? Only the program generating the file list could know that. -- Regards, Matthew Cengia