On Tue, Sep 14, 2010 at 08:57:58PM +0200, no-re...@cfengine.com wrote:
> Seva Gluschenko Wrote:
> ---
> > first two expressions aren't exactly equivalent.
> > !Sunday.!Morning.!dev_env.!phost is equal to
> > !(Sunday|Morning|dev_env|phost).
>
> I
Hi,
Your expression is equivalent to
!Sunday¦!Morning¦!dev_env¦!phost
Regards
no-re...@cfengine.com a écrit :
>Forum: Cfengine Help
>Subject: Logic headache
>Author: neilhwatson
>Link to topic: https://cfengine.com/forum/read.php?3,18232,18232#msg-18232
>
>I'm havi
Hi,
> So '!(Sunday|Morning|dev_env|phost)" means not Sunday and not morning and not
> dev_env and not phost?
Yes; I read this as follows:
"It cannot be Sunday, or Morning, or dev_env, or phost."
Boolean logic can be confusing ;-)
Greetings,
Ed Voncken.
__
Forum: Cfengine Help
Subject: Re: Logic headache
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,18232,18236#msg-18236
So '!(Sunday|Morning|dev_env|phost)" means not Sunday and not morning and not
dev_env and
Forum: Cfengine Help
Subject: Re: Logic headache
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,18232,18235#msg-18235
Seva Gluschenko Wrote:
---
> first two expressions aren't exactly equivalent.
> !Sund
Nope. What you're forgetting is the DeMorgan Laws.
!A & !B <=> ! (A | B)
!(A & B) <=> !A | !B
-Dan
On Sep 14, 2010, at 2:16 PM, no-re...@cfengine.com wrote:
> Forum: Cfengine Help
> Subject: Logic headache
> Author: neilhwatson
> Link to topic
Forum: Cfengine Help
Subject: Re: Logic headache
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,18232,18233#msg-18233
Neil,
first two expressions aren't exactly equivalent.
!Sunday.!Morning.!dev_env.!phost is equal to !(Sunday|Morning|dev_env|phost).
Forum: Cfengine Help
Subject: Logic headache
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,18232,18232#msg-18232
I'm having a calculus flashback. Shouldn't these two classes be equivalent?
1. !(Sunday.Morning.dev_env.phost)
2. !Sunday.!Morning.!dev_