#1700: Remove &&<cr> in BLFS scripts
--------------------+------------------------
Reporter: pierre | Owner: alfs-log@…
Type: defect | Status: new
Priority: normal | Milestone: 3.0
Component: jhalfs | Version: SVN
Severity: normal | Keywords:
--------------------+------------------------
If you have instructions of the form:
{{{
instruction A &&
instruction B &&
instruction C
}}}
and A fails, B and C are not executed (which is what is intended), but the
error code is 0 (because bash thinks it is equivalent to:
{{{
if instruction A; then
if instruction B; then
instruction C
fi
fi
}}}
which returns an error code only if C is executed and exits with an error.
This is not desirable in our case, because it defeats the use of ''set
-e''.
--
Ticket URL: <http://wiki.linuxfromscratch.org/alfs/ticket/1700>
ALFS Trac <http://wiki.linuxfromscratch.org/alfs/>
Automated Linux From Scratch
--
http://lists.linuxfromscratch.org/listinfo/alfs-log
Unsubscribe: See the above information page