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

William Harrington kb0iic at berzerkula.org
Tue Mar 3 07:58:20 PST 2015


On Tue, March 3, 2015 02:27, 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
>>
Hello Chris,

http://www.tldp.org/LDP/abs/html/list-cons.html#LISTCONSREF
It should not read "&& \"

"&&" does do something. If the patch command doesn't work, then touch will
not be executed. If the user does not have the patch, and attempts to
patch the source, the command won't succeed, and touch will not be ran.

Sincerely,

William Harrington


More information about the lfs-support mailing list