"!a OR b" includes "Membership_transter_form.pdf"-Why
Posted: 20 Sep 2015 00:05
"!a OR b" includes "Membership_transter_form.pdf", even though it contains "a". Why?
Forum for XYplorer Users and Developers
https://www.xyplorer.com/xyfc/
While both "3239043b389bb65bd0a1ed3fbd539f7e.jpg" and "Membership_transter_form.pd" contains "a" AND "b", "!a OR b" excludes the former but includes the latter. Why?admin wrote:Because it contains a "b"?
Code: Select all
"!a" and "or" and "b"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)".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 meanNow ! is simply omitted.Code: Select all
"!a" and "or" and "b"
Code: Select all
Without Extended Pattern Matching and no Boolean mode this should be interpreted like this:
"!a" AND "or" AND "b"OK, right.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,For clarity, I would rephrase it as:Code: Select all
Without Extended Pattern Matching and no Boolean mode this should be interpreted like this: "!a" AND "or" AND "b"
Without Extended Pattern Matching and no Boolean mode, while still observing LBM, this should be interpreted like this: