-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Stricter checking of path expressions in 1.5 #921
Comments
It was a bug in jq 1.4 that allowed this to work in the first place. It looks like the code you meant to write is:
Let me know if I misinterpreted your example. It would help to have the input you used as well. |
No, that seems correct, it seems to produce the right result, and is a bit more succinct. Is this more efficient, as well? So, maybe I'm missing something else, but your argument is that |
Here is what the manual has to say about select: https://stedolan.github.io/jq/manual/#%60select%28boolean_expression%29%60
The behavior you were seeing in 1.4 was obviously not this. The |
Right, ok. Thanks for the clarification @dtolnay. |
So, actually, that ends up needing a little bit more modification as we only want to change
|
Alternatively, one can do this without the knowledge of the
|
I am seeing an error in 1.5 that was not present in 1.4. Here are some test files and sample output that demonstrate the issue ( https://gist.github.com/jakirkham/0d2f4708cad69e71b1f6 ). In short, I am running the following command on an empty iPython Notebook and seeing the error below.
The text was updated successfully, but these errors were encountered: