0

I need to add Ruby gem to geminabox source with

gem source -a https://login:my#pass@geminabox.my.domain.com/

But there is # in my password, and this symbol is treated as the beginning of a comment (and I can't change this password). I tried to use \# and %23 but they do not work. Any ideas?

sawa
  • 165,429
  • 45
  • 277
  • 381
StackNRG
  • 79
  • 1
  • 1
  • 6
  • 1
    Have you tried `gem source -a "https://login:my#pass@geminabox.my.domain.com/"`? – Stefan Dec 10 '13 at 13:40
  • Stefan, yes, i tried it with single and double quotes. – StackNRG Dec 10 '13 at 13:42
  • Have you also tried `gem source -a "https://login:my#pa%23ss@geminabox.my.domain.com/"`? Because the quotes you need for the shell (it shall ignore the `#`) and the `%23` notation you need to escape it for the url-parser on the server side (it shall use a `#` in the password). – Alfe Dec 10 '13 at 14:07
  • yep, tried this too and it didn't work. also tested any combination of quotes and \# and %23 – StackNRG Dec 10 '13 at 14:11

0 Answers0