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

Escaping char on pipe input is inconsistent. Double quotes are not escaped but newlines are. #79

Open
agentgt opened this issue Jul 23, 2018 · 0 comments

Comments

@agentgt
Copy link

agentgt commented Jul 23, 2018

When you pipe contents to slack cli it will do the proper escaping for newlines yet does not for ".

For now I'm using a sed script to remove it but I'm probably missing other characters?

#try.txt has newlines and some " (double quotes)
 cat try.txt | sed 's/"/\\"/g' | slack chat send --channel '#engineering' --pretext 'Blah:'

I saw #62 where someone explained you have to do the escaping yourself but if that is the case how come newline is handled but double quote is not? Its really confusing because I'm not sure what chars are handled and what isn't.

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

No branches or pull requests

1 participant