Re: Logic headache

2010-09-14 Thread Max Arnold
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

Re: Cfengine Help: Logic headache

2010-09-14 Thread Nicolas Charles
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

Re: Cfengine Help: Re: Logic headache

2010-09-14 Thread Ed Voncken
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. __

Cfengine Help: Re: Logic headache

2010-09-14 Thread no-reply
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

Cfengine Help: Re: Logic headache

2010-09-14 Thread no-reply
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

Re: Logic headache

2010-09-14 Thread Daniel V. Klein
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

Cfengine Help: Re: Logic headache

2010-09-14 Thread no-reply
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).

Cfengine Help: Logic headache

2010-09-14 Thread no-reply
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_