[alfs-log] [ALFS Trac] #1700: Remove &&<cr> in BLFS scripts

ALFS Trac trac at linuxfromscratch.org
Thu Mar 16 07:04:35 PDT 2017

#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
 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

Ticket URL: <http://wiki.linuxfromscratch.org/alfs/ticket/1700>
ALFS Trac <http://wiki.linuxfromscratch.org/alfs/>
Automated Linux From Scratch

More information about the alfs-log mailing list