Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jul 2001 19:21:49 +0200
From:      Christoph Sold <so@server.i-clue.de>
To:        angela <angelayu@ca.inter.net>
Cc:        "freebsd-questions@FreeBSD.ORG" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: one & and two &&
Message-ID:  <3B55C5AD.7BCDF77@i-clue.de>
References:  <1399129667.20010709164730@mail.ru> <006e01c10927$c3151d80$6d36120a@comsys.ntukpi.kiev.ua> <18810557330.20010711121320@mail.ru> <86itgz4eyf.fsf@hades.hell.gr> <20010711224709.11607.qmail@panda.freebsdsystems.com> <867kxe504y.fsf@hades.hell.gr> <20010712214650.4566.qmail@panda.freebsdsystems.com> <3B55BC96.8E7B1F30@ca.inter.net>

next in thread | previous in thread | raw e-mail | index | archive | help


angela schrieb:
> 
> Hi Lanny Baron
> 
> What is differenet one '&' and two '&&'

In bash and C shell scripts, one ampersand (at the end of the command)
will send the job into background. two ampersands will have the second
command execute only if the first one succeded (as a side effect).
 
> Lanny Baron wrote:
> 
> > Hi,
> > I did a cd /usr/src; make update &&
> > make buildworld &&
> > make install world &&
> > make buildkernel &&
> > make installkernel &&
> > reboot

The above was actually one long line and had to be broken up for email.

HTH
-Christoph Sold

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B55C5AD.7BCDF77>