-
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
stderr doesn't print raw #2063
Comments
This is not a bug, but a feature. Perhaps |
The documentation is somewhat misleading
Would let you believe that stderr behave like Perhaps another word than "raw" could be used here? |
Yeah this is a bug IMO -- either the behavior or the documentation should be fixed, because right now they're inconsistent. |
I am really enjoying jq - unfortunately I tripped up on this as well I perused the docs quite extensively and it seems there is no way to print an arbitrary string (with escape sequences) to standard error? I can't use I don't think that the behavior of |
Just wanted to register a |
|
FWIW, I ended up here because I was trying to do something like this:
I'm filtering ndjson logs and wanted to be able to use the |
Describe the bug
stderr doesn't print its input as a raw string but as an escaped json string.
To Reproduce
jq -n '"line1\nline2" | stderr | empty'
Outputs
"line1\nline2"
Expected behavior
As the manual states:
I expected the program to output be:
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: