Skip to content
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 BW newline handling #3

Merged
merged 1 commit into from
May 10, 2024

Conversation

VladimirMozharov
Copy link
Contributor

In case of presence of the symbol "\n" in response from BW jq crashes if you use echo to print response:
jq: parse error: Invalid string: control characters from U+0000 through U+001F must be escaped at line 2, column 1.

Using printf "%s" is better than using echo in scripts where consistency and predictability regarding newline and other special characters are necessary. Quoting variable is good practice in sh.

In case of presence of the symbol "\n" in response from BW jq crashes if you use echo to print response
@faan11
Copy link
Owner

faan11 commented May 10, 2024

Hi Vlad,

Thank you for waiting and for the change. I've tested your changes and they works.

Thank you again for your contribution

@faan11 faan11 merged commit 159d9c1 into faan11:master May 10, 2024
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