Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

You will stop at nothing to reach your objective, but only because your brakes are defective.


comp / comp.unix.shell / Re: syntax of "find" - am I losing my mind?

SubjectAuthor
* syntax of "find" - am I losing my mind?Kenny McCormack
+- Re: syntax of "find" - am I losing my mind?Wayne
+* Re: syntax of "find" - am I losing my mind?marrgol
|`- Re: syntax of "find" - am I losing my mind?marrgol
+- Re: syntax of "find" - am I losing my mind?Kaz Kylheku
`* Re: syntax of "find" - am I losing my mind?Christian Weisgerber
 +- Re: syntax of "find" - am I losing my mind?Kenny McCormack
 `* Re: syntax of "find" - am I losing my mind?Lawrence D'Oliveiro
  `* De Morgan's laws (Was: syntax of "find" - am I losing my mind?)Kenny McCormack
   `* Re: De Morgan's lawsSalvador Mirzo
    `* Re: De Morgan's lawsJanis Papanagnou
     `* Re: De Morgan's lawsSalvador Mirzo
      `* Re: De Morgan's lawsLew Pitcher
       `* Re: De Morgan's lawsGrant Taylor
        `- Re: De Morgan's lawsSalvador Mirzo

1
Subject: syntax of "find" - am I losing my mind?
From: Kenny McCormack
Newsgroups: comp.unix.shell
Organization: The official candy of the new Millennium
Date: Fri, 27 Dec 2024 20:08 UTC
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.unix.shell
Subject: syntax of "find" - am I losing my mind?
Date: Fri, 27 Dec 2024 20:08:53 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <vkn1gl$28auc$1@news.xmission.com>
Injection-Date: Fri, 27 Dec 2024 20:08:53 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="2370508"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
View all headers

I'm trying to find all files in my home dir that are not in group foo or
group bar. Most of my files are in one or the other of these groups.

This is my tcsh command line:

% find ~ -xdev \! \( -group foo -o -group bar \) -ls

This dumps out every file. It should just dump out a few. Why?

I tried replacing \! with -not and I tried replacing -o with -or.
Neither helped.

I'm sure I've done this sort of thing in the past (successfully).
--
"I think I understand delicate, but why do I have to wash my hands, and
be standing in cold water when doing it?"

Kaz Kylheku <kaz@kylheku.com> in comp.lang.c

Subject: Re: syntax of "find" - am I losing my mind?
From: Wayne
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Fri, 27 Dec 2024 21:29 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wayne@nospam.invalid (Wayne)
Newsgroups: comp.unix.shell
Subject: Re: syntax of "find" - am I losing my mind?
Date: Fri, 27 Dec 2024 16:29:25 -0500
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <vkn67l$3qun4$1@dont-email.me>
References: <vkn1gl$28auc$1@news.xmission.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 27 Dec 2024 22:29:25 +0100 (CET)
Injection-Info: dont-email.me; posting-host="57baeca2d9433362186892427b6e79c6";
logging-data="4029156"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX190ktNMjqcyI9NxF8byX4zabRWICaHurxk="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:gpnnES6YlKuA4KAvmDdF5LT2lhs=
In-Reply-To: <vkn1gl$28auc$1@news.xmission.com>
Content-Language: en-US
View all headers

The "-ls" doesn't work as yoiu expect. Try something like -print or
-printf instead.

--
Wayne

On 12/27/2024 3:08 PM, Kenny McCormack wrote:
> I'm trying to find all files in my home dir that are not in group foo or
> group bar. Most of my files are in one or the other of these groups.
>
> This is my tcsh command line:
>
> % find ~ -xdev \! \( -group foo -o -group bar \) -ls
>
> This dumps out every file. It should just dump out a few. Why?
>
> I tried replacing \! with -not and I tried replacing -o with -or.
> Neither helped.
>
> I'm sure I've done this sort of thing in the past (successfully).

Subject: Re: syntax of "find" - am I losing my mind?
From: marrgol
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Fri, 27 Dec 2024 21:39 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: marrgol@address.invalid (marrgol)
Newsgroups: comp.unix.shell
Subject: Re: syntax of "find" - am I losing my mind?
Date: Fri, 27 Dec 2024 22:39:14 +0100
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <vkn6q2$3nnb7$1@dont-email.me>
References: <vkn1gl$28auc$1@news.xmission.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 27 Dec 2024 22:39:14 +0100 (CET)
Injection-Info: dont-email.me; posting-host="c313dfd4f31202fb27a26301c2dcf263";
logging-data="3923303"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+iDVp0iZhg3b84rCO2g3bB"
User-Agent: Mozilla/5.0 (rv:102.0) Gecko/20100101, Betterbird/102
Cancel-Lock: sha1:e1DJazx3gGnouI3nhiFfqkn583M=
Content-Language: en-GB, pl
In-Reply-To: <vkn1gl$28auc$1@news.xmission.com>
View all headers

On 2024-12-27 at 21:08 Kenny McCormack wrote:
> I'm trying to find all files in my home dir that are not in group foo or
> group bar. Most of my files are in one or the other of these groups.
>
> This is my tcsh command line:
>
> % find ~ -xdev \! \( -group foo -o -group bar \) -ls
>
> This dumps out every file. It should just dump out a few. Why?
>
> I tried replacing \! with -not and I tried replacing -o with -or.
> Neither helped.
>
> I'm sure I've done this sort of thing in the past (successfully).

$ find ~ -xdev -not -group foo -not -group bar -ls

Subject: Re: syntax of "find" - am I losing my mind?
From: Kaz Kylheku
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Fri, 27 Dec 2024 21:57 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 643-408-1753@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.shell
Subject: Re: syntax of "find" - am I losing my mind?
Date: Fri, 27 Dec 2024 21:57:52 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <20241227134400.805@kylheku.com>
References: <vkn1gl$28auc$1@news.xmission.com>
Injection-Date: Fri, 27 Dec 2024 22:57:52 +0100 (CET)
Injection-Info: dont-email.me; posting-host="c6fdeed6bf461b7032a3c432c5ef09e3";
logging-data="4039650"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19BOAgdTOD668Iuai4ywlzsGALiWT2hV+M="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:EJgiWzkNCw4aPHxf/FHolG4q0Bs=
View all headers

On 2024-12-27, Kenny McCormack <gazelle@shell.xmission.com> wrote:
> I'm trying to find all files in my home dir that are not in group foo or
> group bar. Most of my files are in one or the other of these groups.
>
> This is my tcsh command line:
>
> % find ~ -xdev \! \( -group foo -o -group bar \) -ls

It works for me. For instance if I run this on /etc using

-group root -o group shadow

I get only entries that are in groups lp or dip. If I switch
to dip, I get entries in lp and shadow.

Yes, I also tried it in tcsh just to be sure, and I tried it in
my home directory.

> This dumps out every file. It should just dump out a few. Why?

Maybe some invisible junk characters in the command line?
Try typing it out afresh.

Is there direct proof in the output that the results are wrong? Are any
of the listed files in group foo or bar contrary to the query?

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Subject: Re: syntax of "find" - am I losing my mind?
From: marrgol
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Fri, 27 Dec 2024 21:59 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: marrgol@address.invalid (marrgol)
Newsgroups: comp.unix.shell
Subject: Re: syntax of "find" - am I losing my mind?
Date: Fri, 27 Dec 2024 22:59:30 +0100
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <vkn802$3nnb8$1@dont-email.me>
References: <vkn1gl$28auc$1@news.xmission.com> <vkn6q2$3nnb7$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 27 Dec 2024 22:59:30 +0100 (CET)
Injection-Info: dont-email.me; posting-host="c313dfd4f31202fb27a26301c2dcf263";
logging-data="3923304"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/2Sdm50dJmBB79sMjoBbuo"
User-Agent: Mozilla/5.0 (rv:102.0) Gecko/20100101, Betterbird/102
Cancel-Lock: sha1:ART3f/CpxtGPDNsMrYjsdpRNg/0=
Content-Language: en-GB, pl
In-Reply-To: <vkn6q2$3nnb7$1@dont-email.me>
View all headers

On 2024-12-27 at 22:39 marrgol wrote:
> On 2024-12-27 at 21:08 Kenny McCormack wrote:
>> I'm trying to find all files in my home dir that are not in group foo or
>> group bar. Most of my files are in one or the other of these groups.
>>
>> This is my tcsh command line:
>>
>> % find ~ -xdev \! \( -group foo -o -group bar \) -ls
>>
>> This dumps out every file. It should just dump out a few. Why?
>>
>> I tried replacing \! with -not and I tried replacing -o with -or.
>> Neither helped.
>>
>> I'm sure I've done this sort of thing in the past (successfully).
>
> $ find ~ -xdev -not -group foo -not -group bar -ls

I've just tried your version too and both give the the same and correct
result -- are you sure you are using GNU findutils find? Mine is v4.8.0.

Subject: Re: syntax of "find" - am I losing my mind?
From: Christian Weisgerber
Newsgroups: comp.unix.shell
Date: Fri, 27 Dec 2024 22:37 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.swapon.de!weretis.net!feeder8.news.weretis.net!news.szaf.org!inka.de!mips.inka.de!.POSTED.localhost!not-for-mail
From: naddy@mips.inka.de (Christian Weisgerber)
Newsgroups: comp.unix.shell
Subject: Re: syntax of "find" - am I losing my mind?
Date: Fri, 27 Dec 2024 22:37:26 -0000 (UTC)
Message-ID: <slrnvmub16.22so.naddy@lorvorc.mips.inka.de>
References: <vkn1gl$28auc$1@news.xmission.com>
Injection-Date: Fri, 27 Dec 2024 22:37:26 -0000 (UTC)
Injection-Info: lorvorc.mips.inka.de; posting-host="localhost:::1";
logging-data="68505"; mail-complaints-to="usenet@mips.inka.de"
User-Agent: slrn/1.0.3 (FreeBSD)
View all headers

On 2024-12-27, Kenny McCormack <gazelle@shell.xmission.com> wrote:

> I'm trying to find all files in my home dir that are not in group foo or
> group bar. Most of my files are in one or the other of these groups.
>
> This is my tcsh command line:
>
> % find ~ -xdev \! \( -group foo -o -group bar \) -ls

Works for me. You can also de-morgan the expression

% find ~ -xdev \! -group foo \! -group bar -ls

but obviously that won't change whatever underlying problem you're
having.

--
Christian "naddy" Weisgerber naddy@mips.inka.de

Subject: Re: syntax of "find" - am I losing my mind?
From: Kenny McCormack
Newsgroups: comp.unix.shell
Organization: The official candy of the new Millennium
Date: Sat, 28 Dec 2024 01:16 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.unix.shell
Subject: Re: syntax of "find" - am I losing my mind?
Date: Sat, 28 Dec 2024 01:16:54 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <vknji6$28kfk$1@news.xmission.com>
References: <vkn1gl$28auc$1@news.xmission.com> <slrnvmub16.22so.naddy@lorvorc.mips.inka.de>
Injection-Date: Sat, 28 Dec 2024 01:16:54 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="2380276"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
View all headers

In article <slrnvmub16.22so.naddy@lorvorc.mips.inka.de>,
Christian Weisgerber <naddy@mips.inka.de> wrote:
>On 2024-12-27, Kenny McCormack <gazelle@shell.xmission.com> wrote:
>
>> I'm trying to find all files in my home dir that are not in group foo or
>> group bar. Most of my files are in one or the other of these groups.
>>
>> This is my tcsh command line:
>>
>> % find ~ -xdev \! \( -group foo -o -group bar \) -ls
>
>Works for me.

OK - I've got this sorted now.

tl; dr: It works if you put in the correct numeric gid(s) rather than the
symbolic group names. So, I am not losing my mind, and the syntax is
correct.

Longer version: The system on which I am running this (not my system) is a
little bit misconfigured, such that even though both ls and find display
the group id of my files as "foo", and "foo" is defined in /etc/group as
having gid (say) 1234, in fact, my files are not in group 1234, but rather
in group (say) 5678.

So, bottom line, when you use the name "foo" in the command line, "find"
translates that to 1234 and looks for files not in group 1234 (which is
almost all of them) and so on...

--
I'll give him credit for one thing: He is (& will be) the most quotable President
ever. Books have been written about (GW) Bushisms, but Dubya's got nothing on Trump.

Tremendously wet - from the standpoint of water.

Subject: Re: syntax of "find" - am I losing my mind?
From: Lawrence D'Oliv
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Sat, 28 Dec 2024 02:04 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.shell
Subject: Re: syntax of "find" - am I losing my mind?
Date: Sat, 28 Dec 2024 02:04:51 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <vknmc3$3v5eh$2@dont-email.me>
References: <vkn1gl$28auc$1@news.xmission.com>
<slrnvmub16.22so.naddy@lorvorc.mips.inka.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 28 Dec 2024 03:04:51 +0100 (CET)
Injection-Info: dont-email.me; posting-host="1b9145669092ca18d8c3637f211c0964";
logging-data="4167121"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+hJTS6QqNp+pprC5gc1sdN"
User-Agent: Pan/0.161 (Chasiv Yar; )
Cancel-Lock: sha1:VsWQ3T8qlD8h5cIZxwwv1GYk/co=
View all headers

On Fri, 27 Dec 2024 22:37:26 -0000 (UTC), Christian Weisgerber wrote:

> You can also de-morgan the expression

First time I heard a reference to De Morgan’s theorems being used as a
verb. ;)

Does make it sound like you are removing something called “morgan” though,
doesn’t it ...

Subject: De Morgan's laws (Was: syntax of "find" - am I losing my mind?)
From: Kenny McCormack
Newsgroups: comp.unix.shell
Organization: The official candy of the new Millennium
Date: Sat, 28 Dec 2024 10:20 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.unix.shell
Subject: De Morgan's laws (Was: syntax of "find" - am I losing my mind?)
Date: Sat, 28 Dec 2024 10:20:11 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <vkojcr$293ue$1@news.xmission.com>
References: <vkn1gl$28auc$1@news.xmission.com> <slrnvmub16.22so.naddy@lorvorc.mips.inka.de> <vknmc3$3v5eh$2@dont-email.me>
Injection-Date: Sat, 28 Dec 2024 10:20:11 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="2396110"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
View all headers

In article <vknmc3$3v5eh$2@dont-email.me>,
Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>On Fri, 27 Dec 2024 22:37:26 -0000 (UTC), Christian Weisgerber wrote:
>
>> You can also de-morgan the expression
>
>First time I heard a reference to De Morgans theorems being used as a
>verb. ;)
>
>Does make it sound like you are removing something called morgan though,
>doesnt it ...

I think the word we're looking for here is: un-de-morgan.

That is, to translate the verbose but more understandable:

!foo and !bar

into:

! (foo or bar)

via application of De Morgan's law(s) would be to de-morgan it.

CW was suggesting the reverse operation.

--
People sleep peaceably in their beds at night only because rough
men stand ready to do violence on their behalf.

George Orwell

Subject: Re: De Morgan's laws
From: Salvador Mirzo
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Sat, 28 Dec 2024 17:35 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: smirzo@example.com (Salvador Mirzo)
Newsgroups: comp.unix.shell
Subject: Re: De Morgan's laws
Date: Sat, 28 Dec 2024 14:35:15 -0300
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <86y0zzlnho.fsf@example.com>
References: <vkn1gl$28auc$1@news.xmission.com>
<slrnvmub16.22so.naddy@lorvorc.mips.inka.de>
<vknmc3$3v5eh$2@dont-email.me> <vkojcr$293ue$1@news.xmission.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Sat, 28 Dec 2024 18:35:20 +0100 (CET)
Injection-Info: dont-email.me; posting-host="f39440e92a5cfcd59a91ec10447d953f";
logging-data="466067"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/EkfCYE1t79iV/9/vtNvfYvfku+6jrlZs="
Cancel-Lock: sha1:phIr7YjT2vT1Q3y8eYWCuAmEg1w=
sha1:KCTnJOoopuCblch90OaJPLvDZTc=
View all headers

gazelle@shell.xmission.com (Kenny McCormack) writes:

> In article <vknmc3$3v5eh$2@dont-email.me>,
> Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>>On Fri, 27 Dec 2024 22:37:26 -0000 (UTC), Christian Weisgerber wrote:
>>
>>> You can also de-morgan the expression
>>
>>First time I heard a reference to De Morgans theorems being used as a
>>verb. ;)
>>
>>Does make it sound like you are removing something called morgan though,
>>doesnt it ...
>
> I think the word we're looking for here is: un-de-morgan.
>
> That is, to translate the verbose but more understandable:
>
> !foo and !bar
>
> into:
>
> ! (foo or bar)
>
> via application of De Morgan's law(s) would be to de-morgan it.
>
> CW was suggesting the reverse operation.

I'd suggest that to write

!(foo or bar)

is /to de-morgan/ the expression ``!foo and !bar'', while to rewrite
back as !(foo or bar) is /to morgan/ the expression.

Subject: Re: De Morgan's laws
From: Janis Papanagnou
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Sat, 28 Dec 2024 18:12 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou+ng@hotmail.com (Janis Papanagnou)
Newsgroups: comp.unix.shell
Subject: Re: De Morgan's laws
Date: Sat, 28 Dec 2024 19:12:08 +0100
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <vkpf1p$f02q$1@dont-email.me>
References: <vkn1gl$28auc$1@news.xmission.com>
<slrnvmub16.22so.naddy@lorvorc.mips.inka.de> <vknmc3$3v5eh$2@dont-email.me>
<vkojcr$293ue$1@news.xmission.com> <86y0zzlnho.fsf@example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 28 Dec 2024 19:12:10 +0100 (CET)
Injection-Info: dont-email.me; posting-host="e2d2614da03247a1749c0f02c277a58d";
logging-data="491610"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/dN8wuXd4dEzDb2qDE6eZd"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:dm98I0S6F0XZ9eX+ggnndNP5k+c=
In-Reply-To: <86y0zzlnho.fsf@example.com>
View all headers

On 28.12.2024 18:35, Salvador Mirzo wrote:
> gazelle@shell.xmission.com (Kenny McCormack) writes:
>
>> In article <vknmc3$3v5eh$2@dont-email.me>,
>> Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>>> On Fri, 27 Dec 2024 22:37:26 -0000 (UTC), Christian Weisgerber wrote:
>>>
>>>> You can also de-morgan the expression
>>>
>>> First time I heard a reference to De Morgans theorems being used as a
>>> verb. ;)
>>>
>>> Does make it sound like you are removing something called morgan though,
>>> doesnt it ...
>>
>> I think the word we're looking for here is: un-de-morgan.
>>
>> That is, to translate the verbose but more understandable:
>>
>> !foo and !bar
>>
>> into:
>>
>> ! (foo or bar)
>>
>> via application of De Morgan's law(s) would be to de-morgan it.
>>
>> CW was suggesting the reverse operation.
>
> I'd suggest that to write
>
> !(foo or bar)
>
> is /to de-morgan/ the expression ``!foo and !bar'', while to rewrite
> back as !(foo or bar) is /to morgan/ the expression.

I've ever always seen both directions as transformations according
to the laws of De Morgan (so neither would be en-morgan or de-morgan,
sort of).

In context of 'find' the '-and' form might be considered simpler due
to 'find's inherent 'and'-logic.

Janis

Subject: Re: De Morgan's laws
From: Salvador Mirzo
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Mon, 30 Dec 2024 21:15 UTC
References: 1 2 3 4 5 6
Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: smirzo@example.com (Salvador Mirzo)
Newsgroups: comp.unix.shell
Subject: Re: De Morgan's laws
Date: Mon, 30 Dec 2024 18:15:46 -0300
Organization: A noiseless patient Spider
Lines: 53
Message-ID: <864j2kx471.fsf@example.com>
References: <vkn1gl$28auc$1@news.xmission.com>
<slrnvmub16.22so.naddy@lorvorc.mips.inka.de>
<vknmc3$3v5eh$2@dont-email.me> <vkojcr$293ue$1@news.xmission.com>
<86y0zzlnho.fsf@example.com> <vkpf1p$f02q$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Mon, 30 Dec 2024 22:15:53 +0100 (CET)
Injection-Info: dont-email.me; posting-host="ff40e98a2cbd208907c566a62a411985";
logging-data="1903806"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/aPC6b7p+O2/MNciB/MOjUt2qnWoQegm0="
Cancel-Lock: sha1:3Laaw0R9qC6KClpavbWQdo8UJYU=
sha1:NNGtLhGvP7mddutv3Na0bjL0oNQ=
View all headers

Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:

> On 28.12.2024 18:35, Salvador Mirzo wrote:
>> gazelle@shell.xmission.com (Kenny McCormack) writes:
>>
>>> In article <vknmc3$3v5eh$2@dont-email.me>,
>>> Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>>>> On Fri, 27 Dec 2024 22:37:26 -0000 (UTC), Christian Weisgerber wrote:
>>>>
>>>>> You can also de-morgan the expression
>>>>
>>>> First time I heard a reference to De Morgans theorems being used as a
>>>> verb. ;)
>>>>
>>>> Does make it sound like you are removing something called morgan though,
>>>> doesnt it ...
>>>
>>> I think the word we're looking for here is: un-de-morgan.
>>>
>>> That is, to translate the verbose but more understandable:
>>>
>>> !foo and !bar
>>>
>>> into:
>>>
>>> ! (foo or bar)
>>>
>>> via application of De Morgan's law(s) would be to de-morgan it.
>>>
>>> CW was suggesting the reverse operation.
>>
>> I'd suggest that to write
>>
>> !(foo or bar)
>>
>> is /to de-morgan/ the expression ``!foo and !bar'', while to rewrite
>> back as !(foo or bar) is /to morgan/ the expression.
>
> I've ever always seen both directions as transformations according
> to the laws of De Morgan (so neither would be en-morgan or de-morgan,
> sort of).

We're defining directions here so that we can speak and look cool. We
can all pose as intellectuals. And people will have to look up the
morgan verb---unsuccessfully.

> In context of 'find' the '-and' form might be considered simpler due
> to 'find's inherent 'and'-logic.

I think en-morgan should making something jump into the parentheses and
de-morgan should be the reverse. We should not be too logical. We
should prioritize how we sound and how our powerpoint presentations will
look like when we're presenting our style.

Subject: Re: De Morgan's laws
From: Lew Pitcher
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Tue, 31 Dec 2024 15:54 UTC
References: 1 2 3 4 5 6 7
Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: lew.pitcher@digitalfreehold.ca (Lew Pitcher)
Newsgroups: comp.unix.shell
Subject: Re: De Morgan's laws
Date: Tue, 31 Dec 2024 15:54:20 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <vl143c$2a0ea$1@dont-email.me>
References: <vkn1gl$28auc$1@news.xmission.com>
<slrnvmub16.22so.naddy@lorvorc.mips.inka.de>
<vknmc3$3v5eh$2@dont-email.me> <vkojcr$293ue$1@news.xmission.com>
<86y0zzlnho.fsf@example.com> <vkpf1p$f02q$1@dont-email.me>
<864j2kx471.fsf@example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 31 Dec 2024 16:54:20 +0100 (CET)
Injection-Info: dont-email.me; posting-host="078b870fca780f40f98ed419b39eaeab";
logging-data="2425290"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19lvYhc1J3Gzf0DESnTwvdv80bknU5vSPs="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:h9HzIfIlHz8IOOj7x+p4WE2tH78=
View all headers

On Mon, 30 Dec 2024 18:15:46 -0300, Salvador Mirzo wrote:

[snip]

> I think en-morgan should making something jump into the parentheses and
> de-morgan should be the reverse.

As those specific laws of valid inference were named after Augustus De Morgan
(son of John De Morgan and Elizabeth Dodson), with "De Morgan" being Agustus'
surname, it is fitting to refer to them as "De Morgan's laws" or "De Morgan's
theorem"

I propose that the verb "DeMorgan" (as in "to DeMorgan an expression") be
used to represent the application of the normal form of "De Morgan's theorem",
and the verb "deDeMorgan" be used to represent the application of the inverse
of "DeMorgan".

Just my 10(binary) cents worth, of course :-)
--
Lew Pitcher
"In Skills We Trust"

Subject: Re: De Morgan's laws
From: Grant Taylor
Newsgroups: comp.unix.shell
Organization: TNet Consulting
Date: Tue, 31 Dec 2024 22:32 UTC
References: 1 2 3 4 5 6 7 8
Path: news.eternal-september.org!eternal-september.org!feeder3.eternal-september.org!tncsrv06.tnetconsulting.net!tncsrv09.home.tnetconsulting.net!.POSTED.omega.home.tnetconsulting.net!not-for-mail
From: gtaylor@tnetconsulting.net (Grant Taylor)
Newsgroups: comp.unix.shell
Subject: Re: De Morgan's laws
Date: Tue, 31 Dec 2024 16:32:21 -0600
Organization: TNet Consulting
Message-ID: <vl1rdl$aco$1@tncsrv09.home.tnetconsulting.net>
References: <vkn1gl$28auc$1@news.xmission.com>
<slrnvmub16.22so.naddy@lorvorc.mips.inka.de> <vknmc3$3v5eh$2@dont-email.me>
<vkojcr$293ue$1@news.xmission.com> <86y0zzlnho.fsf@example.com>
<vkpf1p$f02q$1@dont-email.me> <864j2kx471.fsf@example.com>
<vl143c$2a0ea$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 31 Dec 2024 22:32:21 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="omega.home.tnetconsulting.net:198.18.1.11";
logging-data="10648"; mail-complaints-to="newsmaster@tnetconsulting.net"
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <vl143c$2a0ea$1@dont-email.me>
View all headers

On 12/31/24 09:54, Lew Pitcher wrote:
> I propose that the verb "DeMorgan" (as in "to DeMorgan an expression")
> be used to represent the application of the normal form of "De
> Morgan's theorem", and the verb "deDeMorgan" be used to represent
> the application of the inverse of "DeMorgan".

I would suggest "un-DeMorgan" (hyphen optional) in order to avoid
conflict between the two pairs of "de" (case insensitive).

--
Grant. . . .

Subject: Re: De Morgan's laws
From: Salvador Mirzo
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Wed, 1 Jan 2025 02:28 UTC
References: 1 2 3 4 5 6 7 8 9
Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: smirzo@example.com (Salvador Mirzo)
Newsgroups: comp.unix.shell
Subject: Re: De Morgan's laws
Date: Tue, 31 Dec 2024 23:28:31 -0300
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <86ldvv2row.fsf@example.com>
References: <vkn1gl$28auc$1@news.xmission.com>
<slrnvmub16.22so.naddy@lorvorc.mips.inka.de>
<vknmc3$3v5eh$2@dont-email.me> <vkojcr$293ue$1@news.xmission.com>
<86y0zzlnho.fsf@example.com> <vkpf1p$f02q$1@dont-email.me>
<864j2kx471.fsf@example.com> <vl143c$2a0ea$1@dont-email.me>
<vl1rdl$aco$1@tncsrv09.home.tnetconsulting.net>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Wed, 01 Jan 2025 03:28:43 +0100 (CET)
Injection-Info: dont-email.me; posting-host="de0e49f224a05347dbc528568667835a";
logging-data="2630236"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+EtVuLnVReH0lw6Lnzd0Fix83vJTragkM="
Cancel-Lock: sha1:l6qxll7w6PkFUzhbRk1fTdV0+VY=
sha1:0ua+lWTZjTS+uKbJLvY3tY9nvcQ=
View all headers

Grant Taylor <gtaylor@tnetconsulting.net> writes:

> On 12/31/24 09:54, Lew Pitcher wrote:
>> I propose that the verb "DeMorgan" (as in "to DeMorgan an
>> expression") be used to represent the application of the normal form
>> of "De Morgan's theorem", and the verb "deDeMorgan" be used to
>> represent the application of the inverse of "DeMorgan".
>
> I would suggest "un-DeMorgan" (hyphen optional) in order to avoid
> conflict between the two pairs of "de" (case insensitive).

Well said---the world has enough conflicts; not to mention all the IRQ
conflicts I went through when running Windows 3.11 back in 19... I
forget.

1

rocksolid light 0.9.8
clearnet tor