[lfs-support] what is the purpose of && at the end of patching core utils?

Bruce Dubbs bruce.dubbs at gmail.com
Mon Mar 2 18:27:31 PST 2015

Chris Susi wrote:
> In 6.19, building coreutils the patch statement is:
>    patch -Np1 -i ../coreutils-8.23-i18n-1.patch &&
>    touch Makefile.in
> If I'm reading this right, the "&&" doesn't add anything.  Is this
> suppose to read
>    patch -Np1 -i ../coreutils-8.23-i18n-1.patch && \
>      touch Makefile.in
> As it's written, it doesn't look like it makes a difference if it's
> there or not, just puzzling that it's there.

Try running 'ls &&' and see what happens.  You don't need the backslash.

Actually, we generally don't use && in LFS but we use it a lot in BLFS.  I'll 
remove it.

   -- Bruce

More information about the lfs-support mailing list