{"action":"created","issue":{"url":"https://api.github.com/repos/processone/ejabberd/issues/804","labels_url":"https://api.github.com/repos/processone/ejabberd/issues/804/labels{/name}","comments_url":"https://api.github.com/repos/processone/ejabberd/issues/804/comments","events_url":"https://api.github.com/repos/processone/ejabberd/issues/804/events","html_url":"https://github.com/processone/ejabberd/issues/804","id":114273311,"number":804,"title":"ejabberdctl requires insane quoting (send_stanza_c2s)","user":{"login":"cweiske","id":59036,"avatar_url":"https://avatars.githubusercontent.com/u/59036?v=3","gravatar_id":"","url":"https://api.github.com/users/cweiske","html_url":"https://github.com/cweiske","followers_url":"https://api.github.com/users/cweiske/followers","following_url":"https://api.github.com/users/cweiske/following{/other_user}","gists_url":"https://api.github.com/users/cweiske/gists{/gist_id}","starred_url":"https://api.github.com/users/cweiske/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cweiske/subscriptions","organizations_url":"https://api.github.com/users/cweiske/orgs","repos_url":"https://api.github.com/users/cweiske/repos","events_url":"https://api.github.com/users/cweiske/events{/privacy}","received_events_url":"https://api.github.com/users/cweiske/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-30T13:49:19Z","updated_at":"2015-11-02T11:33:57Z","closed_at":null,"body":"I'm trying to send a message via `ejabberdctl send_stanza_c2s`, which requires 4 parameters:\r\n\r\n    $ ejabberdctl |grep send_stanza\r\n    send_stanza_c2s user host resource stanza \r\n\r\n    $ ejabberdctl send_stanza_c2s alice example.org resource '<message type=\"chat\" to=\"bob@example.org\" from=\"alice@example.org\"><body>World</body></message>'\r\n    Error: the command \"send_stanza_c2s\" requires 3 less argument.\r\n\r\nIt works when you quote the space within the command strangely:\r\n\r\n    $ ejabberdctl send_stanza_c2s alice example.org \"Psi+\" \"<message' 'type=\\\"chat\\\"' 'to=\\\"bob@example.org\\\"' 'from=\\\"alice@example.org\\\"><body>World</body></message>\"\r\n\r\nThis is not friendly at all. Please make normal shell quoting work."},"comment":{"url":"https://api.github.com/repos/processone/ejabberd/issues/comments/152994400","html_url":"https://github.com/processone/ejabberd/issues/804#issuecomment-152994400","issue_url":"https://api.github.com/repos/processone/ejabberd/issues/804","id":152994400,"user":{"login":"badlop","id":96807,"avatar_url":"https://avatars.githubusercontent.com/u/96807?v=3","gravatar_id":"","url":"https://api.github.com/users/badlop","html_url":"https://github.com/badlop","followers_url":"https://api.github.com/users/badlop/followers","following_url":"https://api.github.com/users/badlop/following{/other_user}","gists_url":"https://api.github.com/users/badlop/gists{/gist_id}","starred_url":"https://api.github.com/users/badlop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/badlop/subscriptions","organizations_url":"https://api.github.com/users/badlop/orgs","repos_url":"https://api.github.com/users/badlop/repos","events_url":"https://api.github.com/users/badlop/events{/privacy}","received_events_url":"https://api.github.com/users/badlop/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T11:33:57Z","updated_at":"2015-11-02T11:33:57Z","body":"You're right, using that command is quite difficult. Please make a suggestion for improving it."}}