Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logic primacy and/or logic nesting #181

Open
kahn10 opened this issue Oct 9, 2020 · 2 comments
Open

logic primacy and/or logic nesting #181

kahn10 opened this issue Oct 9, 2020 · 2 comments

Comments

@kahn10
Copy link

kahn10 commented Oct 9, 2020

I'm trying to understand exactly how stig handles complex logic groupings. Do 'and' statements group 'or' statements or vice versa? is hierarchical logic possible?

Example:

stig ls 'foo|bar&blah'

Does this produce all items which have 'foo' or 'bar', all of which contain 'blah', or does it deliver all 'foo' along with items which contain both 'bar' and 'blah'? It looks like it's the latter., but I want to confirm I'm interpreting that correctly. Would this produce the same list as:

stig ls 'bar&blah|foo'

Is it possible to use brackets or braces to intentionally nest logic statements?

@kahn10
Copy link
Author

kahn10 commented Oct 9, 2020

Further testing has made me conclude that 'or' statements group 'and' statements. I can work with that, but I wonder if explicit nesting could be implemented.

@rndusr
Copy link
Owner

rndusr commented Oct 9, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants