Follow-up Comment #7, bug #61009 (project findutils):
>> find . -type f | xargs -F -IX -n1 cp -f X $IMGDIR_DST/X
>>
>> I can't find any problem with unsafe filenames. Am i wrong?
Yes:
The idiom 'find -type f | xargs -IX cp X ...' is per se unsafe:
`xargs -I` reads the input line by line - but
Follow-up Comment #6, bug #61009 (project findutils):
[comment #5 comment #5:]
> Sorry, that had an obvious bug, here's a fix:
>
> find . -type f \( -exec cp -t "${IMGDIR_DST}" {} + -o -quit \)
IMHO, this isn't _less_complex_ :-). There are:
- \( \)
- \+
- -o -quit
This is complex. There are m