yqlib adds a trailing \n to scalar outputs #1709
Unanswered
ElanHasson
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Yeah it does that on purpose - as that's what JQ also does. Can you provide more context on what you're trying to do - as far as I know *sh clis will chomp the newline when you capture the value in a variable anyway.. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've tried a few different settings on the preferences to get the
\n
to not be appended to the end with no luck.I also tried the Json encoder as well. Not sure what to do to get it to not append it.
Not sure if this is the same as described here in : #1641
Thanks!
Actual behavior
result = "1\n"
Expected behavior
result = "1"
Beta Was this translation helpful? Give feedback.
All reactions