-
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
Fix array deletion bug #2662
Fix array deletion bug #2662
Conversation
@pkoppstein a small gift. I forget which issue (number) this relates to... |
The issue is #2051. |
But just reversing the path of EACH does not resolve all the issues here;
|
Excellent observation. If you have literal array indices going forwards like that, then we might could consider that user error. The real problem is that one might write I'm not sure how to fix this more generally because the But I can't see how to jq-code But certainly, fixing
Maybe, but the description for I suppose I could add a note about how It is true that one can avoid In the meantime, the
That's this test:
and this is due to my logic in |
I saw a comment earlier in some issue about how |
So years ago I gave up ordering the paths for deleting correctly, and the idea of the fix #2133 is collecting the deletion paths and use |
Ay, I did not read before writing, but yes, collecting the paths to delete works. |
I'll abandon this tack, though I might keep |
TBD:
EACH
andEACH_OPT
, and forPATH_BEGIN