Jean-Philippe MENGUAL wrote:
> OOPS! but it's terrible! sorry I did the same mistake as the first time! I 
> restart. Apologizes.

Please try not to top-post, it makes things harder to read as messages 
are out of order (see http://www.linuxfromscratch.org/faq/#netiquette).

> find . -name \*.html -type f -exec cp -v
> \{} /usr/share/doc/mpfr-&mpfr-version; \;</userinput></screen>
> 
> I didn't talk about the . but I meant the \ before {} is not proper.

Well, as Bruce pointed out earlier, it's being used here to prevent the 
shell from interpreting them.  See find(1) which gives this example:

find . -type f -exec file '{}' \;

which uses single quotes to prevent shell-interpretation and explains 
that a '\' can be used as well (as per the '\;' in that same example).

So, I'm happy to either leave the book as-is, or use single-quotes as 
per find(1).  Either way, I think it's pretty clear that strictly 
speaking, escaping those characters is the correct thing to do even 
though it may not be required under all shells.

Regards,

Matt.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to