Skip to content

Add mention of new operators #1849

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

Merged
merged 1 commit into from
Mar 26, 2025
Merged

Add mention of new operators #1849

merged 1 commit into from
Mar 26, 2025

Conversation

LemmusLemmus
Copy link
Contributor

Simply adds a mention of the new operators has and not-has in the book.

@fdncred
Copy link
Contributor

fdncred commented Mar 26, 2025

While you're in here, would you mind adding like and not-like? like is a synonym for =~ and not-like is a synonym for !~.

@LemmusLemmus LemmusLemmus changed the title Add mention of operators has and has-not Add mention of new operators Mar 26, 2025
@LemmusLemmus
Copy link
Contributor Author

LemmusLemmus commented Mar 26, 2025

Sure!

Does my change look OK (using `=~` or `like` ) or would you prefer listing the synonyms on separate table rows?

BTW, `like` and `not-like` do not seem to be listed when running `help operators`.

@fdncred
Copy link
Contributor

fdncred commented Mar 26, 2025

Does my change look OK

I think it's fine. Thanks for adding it. If someone doesn't like it, they can submit a PR to change it. The key is that it's documented now.

BTW, like and not-like do not seem to be listed when running help operators.

Yup, that's a bug too. I wasn't quite sure how to add them.

@fdncred fdncred merged commit d5d4afd into nushell:main Mar 26, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants