M.Canales.es wrote:
2. Please don't use "&&" between commands. Reason: sometimes there's no
"&&" if the book says to do two commands in one screen/userinput block.
In order to fail reliably on any error without continuing the script,
you can add a "set -e" line just below "#!/bin/sh". This has the same
effect as adding "&&" between all commands. Obviously, "make -k check"
should be replaced with "make -k check || true" then.

Good trip. That also will do unneeded the hack for "cat ... EOF" blocks.

I'm sure you knew this, but remember that set -e does not break for simple errors in while loops. Haven't looked at jhalfs to know if this is the case or not. Just wanted to give a heads up.

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

Reply via email to