Re: Annoying and useless &&

Pierre Labastie ([email protected] via blfs-support Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.beyond.support
Message-ID <[email protected]>
On Wed, 2026-08-19 at 11:00 -0400, Pocket wrote:
> Beyond Linux® From Scratch (systemd Edition) - Version r13.0
> Chapter 4. Security
> 
> For example there are && after
> 
> cat > /etc/pam.d/system-account << "EOF" &&
> 
> Which are quite useless as there is a blank line after the &&
> statement.

Blank lines are jumped over by &&. Try:

$ echo blurb &&


echo blorb
blurb
blorb

Now whether they are useful is a matter of appreciation (I don't like
them either, and they are a pain to align when editing...)

> It also happens in a number of the other places && is used as well.
> 
> In general the && doesn't contribute much of anything towards
> building 
> the particular package.
> 
> They are not used in the LFS book and really shouldn't be in the BLFS
> book either.

Pierre

-- 
http://lists.linuxfromscratch.org/sympa/info/blfs-support
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.