-
Notifications
You must be signed in to change notification settings - Fork 76
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
[Busybox] "Invalid regexp" after applying the busybox patch from FAQ #17
Comments
Thank you for your report. I can reproduce this issue on Alpine Linux 3.12.1 with busybox 1.31.1.
The issue is that busybox doesn't seem to like the encoded BOM marks. If you know that your input JSON will not include BOM marks, that is, the JSON file isn't generated by a Windows application, you can work around this bug by changing JSON.awk as follows: I tested the changes on Alpine Linux with This patch is temporary to enable you to further assess JSON.awk for your needs. I'm going to leave this issue open, and I will come back to it after further investigating BOM encoding options for busybox awk. Feel free to add more comments to this conversation.
|
Thank you for the quick and detailed feedback! As a workaround, I switched back to v1.4 (https://github.com/step-/JSON.awk/blob/1.4/JSON.awk). |
I tested 1.4.2 on Alpine Linux 3.12.1 with busybox 1.31.1. |
Hello,
I'm running Busybox on Alpine 3.12.1. I'm still getting an "Invalid regexp" after applying the Busybox patch from the FAQ (
sed -i "s#\\\000#\\\001#g" JSON.awk
).Before patch:
After patch (
sed -i "s#\\\000#\\\001#g" JSON.awk
):Infos:
The text was updated successfully, but these errors were encountered: