chrisfsampaio / imsg

Chat using iMessage from your terminal!
MIT License
693 stars 51 forks source link

Handle single- and double-quotes #19

Closed m1foley closed 10 years ago

m1foley commented 10 years ago
imsg '"test1"'
37:43: syntax error: A identifier can’t go after this “"”. (-2740)

imsg "I'm testing"
sh: -c: line 0: unexpected EOF while looking for matching `"'
Rynaro commented 10 years ago

Tried to test escaping the quotes of the message?

m1foley commented 10 years ago

I think that normal shell escaping should work. Since the bug is caused by the gem adding its own quotes when shelling out, it should handle any additional escaping it needs.

chrisfsampaio commented 10 years ago

Commit d223867baf5559696cef6e392c9c67955e460622 has just fixed this issue. It is already available on the latest version (0.0.6), gem install imsg should do to job (: