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

Chris Susi chris at susi.net
Tue Mar 3 10:17:45 PST 2015


On Mon, Mar 2, 2015, at 06:27 PM, Bruce Dubbs wrote:
> 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
> 

Thank you.  I've been running the commands in a script or copy/pasting
them.  I knew what && did, but didn't know it worked on multiple lines. 
TIL.



More information about the lfs-support mailing list