From: Glynn Clements <glynn@gclements.plus.com>
To: urgrue <urgrue@tumsan.fi>
Cc: linux-admin@vger.kernel.org
Subject: Re: a command "spool", ie queueing commands?
Date: Thu, 4 Aug 2005 12:16:12 +0100 [thread overview]
Message-ID: <17137.63740.541674.508010@cerise.gclements.plus.com> (raw)
In-Reply-To: <1123140368l.3265l.0l@hyttynen>
urgrue wrote:
> > You could try something like:
> >
> > $ command1 && command2 && command3
>
> Better would be command1 ; command2 ; command3, because then it won't
> depend on the previous command coming out true.
Well, whether or not it's better depends upon whether you want to
conditionalise execution of one command upon success of the previous
command.
I find it far more common for scripts to use ";" when they really
should have used "&&" than the converse. A particularly common case
is "cd foo ; dosomething"; this should almost always be using "&&".
--
Glynn Clements <glynn@gclements.plus.com>
next prev parent reply other threads:[~2005-08-04 11:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1122963263l.32575l.0l@hyttynen>
[not found] ` <60a7468905080200315678d209@mail.gmail.com>
[not found] ` <1122969644l.1939l.0l@hyttynen>
2005-08-02 13:14 ` a command "spool", ie queueing commands? asterr
2005-08-04 0:57 ` Emiliano Castagnari
2005-08-04 7:26 ` urgrue
2005-08-04 11:16 ` Glynn Clements [this message]
2005-08-04 16:27 ` command spooling tangent Jim Roy
2005-08-09 0:54 ` a command "spool", ie queueing commands? Mike Castle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17137.63740.541674.508010@cerise.gclements.plus.com \
--to=glynn@gclements.plus.com \
--cc=linux-admin@vger.kernel.org \
--cc=urgrue@tumsan.fi \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).