Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jul 2001 12:19:16 -0500
From:      "Shwim" <shwim@purdue.edu>
To:        "P. U. (Uli) Kruppa" <root@pukruppa.de>, "angela" <angelayu@ca.inter.net>
Cc:        "Lanny Baron" <lnb@FreeBSDsystems.COM>, <freebsd-questions@FreeBSD.ORG>
Subject:   Re: one & and two &&
Message-ID:  <002101c10fad$cbd6dee0$0301a8c0@resnet.purdue.edu>
References:  <20010718190539.U3625-100000@localhost.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Of course in most shells,

& = set into background  <command a> &

&& = pretty much the same as below  <command a> && <command b>
where you execute command b if command a successfully executes

I'm guessing since you're asking this mailing list, you wanted to know the
common
shell implementations used in FreeBSD.

Shwim

----- Original Message -----
From: "P. U. (Uli) Kruppa" <root@pukruppa.de>
To: "angela" <angelayu@ca.inter.net>
Cc: "Lanny Baron" <lnb@FreeBSDsystems.COM>; <freebsd-questions@FreeBSD.ORG>
Sent: Wednesday, July 18, 2001 2:11 PM
Subject: Re: one & and two &&


> On Wed, 18 Jul 2001, angela wrote:
>
> > Date: Wed, 18 Jul 2001 12:43:03 -0400
> > From: angela <angelayu@ca.inter.net>
> > To: Lanny Baron <lnb@FreeBSDsystems.COM>,
> >      "freebsd-questions@FreeBSD.ORG" <freebsd-questions@FreeBSD.ORG>
> > Subject: one & and two &&
> >
> > Hi Lanny Baron
> >
> >
> > What is differenet one '&' and two '&&'
> & is the logical "and" condition:
> a&b=true if (a=true and b=true)
> (both a and b are checked)
>
> && is a 'technical' "and" condition:
> only check b=true if a=true (anything else would be a waste
> of time)
>
>
> Uli.
>
>
> *--------------------------------------*
> |  www.pukruppa.de       www.2000d.de  |
> |          Wuppertal - Germany         |
> *--------------------------------------*
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>


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?002101c10fad$cbd6dee0$0301a8c0>