"!a OR b" includes "Membership_transter_form.pdf"-Why

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

"!a OR b" includes "Membership_transter_form.pdf"-Why

Post by armsys »

"!a OR b" includes "Membership_transter_form.pdf", even though it contains "a". Why?

admin
Site Admin
Posts: 66631
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: "!a OR b" includes "Membership_transter_form.pdf"-Why

Post by admin »

Because it contains a "b"? :whistle:

armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

Re: "!a OR b" includes "Membership_transter_form.pdf"-Why

Post by armsys »

admin wrote:Because it contains a "b"? :whistle:
While both "3239043b389bb65bd0a1ed3fbd539f7e.jpg" and "Membership_transter_form.pd" contains "a" AND "b", "!a OR b" excludes the former but includes the latter. Why?

LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: "!a OR b" includes "Membership_transter_form.pdf"-Why

Post by LittleBiG »

Because the "!a or b" is evaluated as standard, not boolean in your case.

EDIT:
However, I feel a little bug here. If master invert is unset and no smart detect of boolean, the "!a or b" should mean

Code: Select all

"!a" and "or" and "b"
Now ! is simply omitted.

armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

Re: "!a OR b" includes "Membership_transter_form.pdf"-Why

Post by armsys »

LittleBiG wrote:Because the "!a or b" is evaluated as standard, not boolean in your case.
EDIT:
However, I feel a little bug here. If master invert is unset and no smart detect of boolean, the "!a or b" should mean

Code: Select all

"!a" and "or" and "b"
Now ! is simply omitted.
Bingo! You're absolutely correct. By examining hundreds of file names one by one, it took me innumerous hours to reach the same conclusion. I discover each found item contains "or". Then, I realize I was fooled and misled by the beta log. In a glimpse, in the whole context of the beta log, you won't possibly doubt the "OR" as a logical operator. In fact, it's untrue. the "OR" is interpreted as a literal string "or". Don never hints the possibility of the Standard mode and the pattern being interpreted as a character string. On the contrary, Don worsens our confusion by the annotation of "NOT (a OR b)".
To see the attached files, you need to log into the forum.

armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

Re: "!a OR b" includes "Membership_transter_form.pdf"-Why

Post by armsys »

My repeated tests confirm v15.70.0129 removes all recently mentioned minor 'File Files' anomalies.
While the "Enable extended pattern matching" option being disabled, in File Files, the !a or b pattern can include, say, "!aUR_Lib_Import.txt", as expected.
Nonetheless, referring to the v15.70.0129 beta log,

Code: Select all

Without Extended Pattern Matching and no Boolean mode this should be interpreted like this:
"!a" AND "or" AND "b"
For clarity, I would rephrase it as:
Without Extended Pattern Matching and no Boolean mode, while still observing LBM, this should be interpreted like this:

armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

Re: "!a OR b" includes "Membership_transter_form.pdf"-Why

Post by armsys »

Referring to the v15.70.0129 beta log, Don took painstaking efforts in augmenting clarity in the following ofttimes overlooked nuances:
1. Find Files vs. Quick Search. (The most important one!)
2. Factory vs Non-Factory defaults in respect of FindAllowMasterInvert.
3. "Enabled extended pattern matching" option.
Thank you Don. :cup: :beer: :appl: :biggrin:

admin
Site Admin
Posts: 66631
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: "!a OR b" includes "Membership_transter_form.pdf"-Why

Post by admin »

armsys wrote:My repeated tests confirm v15.70.0129 removes all recently mentioned minor 'File Files' anomalies.
While the "Enable extended pattern matching" option being disabled, in File Files, the !a or b pattern can include, say, "!aUR_Lib_Import.txt", as expected.
Nonetheless, referring to the v15.70.0129 beta log,

Code: Select all

Without Extended Pattern Matching and no Boolean mode this should be interpreted like this:
"!a" AND "or" AND "b"
For clarity, I would rephrase it as:
Without Extended Pattern Matching and no Boolean mode, while still observing LBM, this should be interpreted like this:
OK, right.

Post Reply