jhalfs: Ready to go.
dbn.lists at gmail.com
Mon Oct 17 06:06:06 PDT 2005
>>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.
More information about the lfs-dev