close2 / shell-xmpp-client

Xmpp client written in bash / ash (openwrt). It's only dependency is ncat (or similar) for the actual ssl connection.
GNU General Public License v3.0
33 stars 13 forks source link

"bad variable name", maybe JID incorrectly parsed? #3

Open nicolas-raoul opened 9 years ago

nicolas-raoul commented 9 years ago

shell-xmpp-client dies with "bad variable name". Not sure it is related, but from what I see it seems to trunk the first part of the Jabber id:

$ ./xmpp.sh --connect --jid dalobadoy@chat.facebook.com --pass fAeo4t829d88U49t
./xmpp.sh: 381: local: y@chat.facebook.com: bad variable name

Using latest Git version on Ubuntu 2014.04

close2 commented 9 years ago

I think this is a dash problem. There is an old bug report about dash not implementing 'local' correctly. https://bugs.launchpad.net/ubuntu/+source/dash/+bug/139097

Could you please try with bash (or zsh) again?

It shouldn't be hard to fix all 'local' calls. I will put this onto my todo list.

nicolas-raoul commented 9 years ago

I have never used dash.

The bug above is with bash, as it comes by default on Ubuntu.

close2 commented 9 years ago

interesting. I will try to reproduce this in a ubuntu 2014.04 virtualbox.

If I can't reproduce this I might need your debug file (--debug-file /tmp/debug.txt).

thanks for the fast reply.

close2 commented 8 years ago

As mentioned in issue #4, this might be because the script starts with #!/bin/sh

It apparently works when called with #!/bin/bash

I will try to reproduce this.