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 ...
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
with two backslashes
replacement = Matcher.quoteReplacement(replacement);
a = a.replaceAll("dollar", replacement);