-
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
bug fix for sub/2 #586
Comments
@nicowilliams - Now that you're back, could you please install the update? #576 also requires your attention, somewhat urgently in my opinion, as "split" is often essential. Thanks. |
@pkoppstein This |
@nicowilliams - It loads fine here, and the following builtin.c variant (with $re) compiles here as well. Perhaps you have a "$" or ";" or some-such out of place? In any case, the only needed change is the "length" check, so you may find it simplest to roll your own.
|
#594 installs this fix, and makes trivial modifications to add gsub/3. The resultant jq has been tested. |
Thanks! That's much more convenient. I'm at an airport, so connectivity |
I'll snag it tonight.
|
Signed-off-by: William Langford <wlangfor@gmail.com>
Closed with 85f0e30 (Why does this only auto-close half of the time?) |
There's a bug in builtin.c:sub -- a length check is missing. The corrected code is below. A relevant test case is:
The text was updated successfully, but these errors were encountered: