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

Special characters on mac #38

Open
nirahiel opened this issue Mar 26, 2012 · 4 comments
Open

Special characters on mac #38

nirahiel opened this issue Mar 26, 2012 · 4 comments

Comments

@nirahiel
Copy link

I'l having issues with my password on mac.
If my password contains a $ it says login or password incorrect...
Escaping the $ with a \ worked for nodester user setup .... but fails with nodester user setkey ...

Thanks.

@Epsilex
Copy link

Epsilex commented Jun 30, 2012

The issue is because, the command setkey is using a indexOf or replace command and it returns an exception: "illegal group reference" because of the dollar sign which it's interpreted as a param of the function as it's a metacharacter

@Epsilex
Copy link

Epsilex commented Jun 30, 2012

replacement $

@Epsilex
Copy link

Epsilex commented Jun 30, 2012

with two backslashes

@Epsilex
Copy link

Epsilex commented Jun 30, 2012

replacement = Matcher.quoteReplacement(replacement);
a = a.replaceAll("dollar", replacement);

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

2 participants