Skip to content

Instantly share code, notes, and snippets.

@SoniEx2
Created April 26, 2016 23:14
Show Gist options
  • Save SoniEx2/615aaf36058f793641bac201d3e3f556 to your computer and use it in GitHub Desktop.
Save SoniEx2/615aaf36058f793641bac201d3e3f556 to your computer and use it in GitHub Desktop.
Steam Chat

Did you know?

Steam chat, the thing you use while playing games, mangles your messages for you... It's especially interesting when sending shell commands.

  • ~/.ssh/config becomes http://ssh/config
  • $HOME/.ssh/config becomes http://HOME/.ssh/config
  • ${HOME}/.ssh/config becomes http://HOME}/.ssh/config

It seems like some space-delimited character sequences containing / get http:// added at the start, after all non-alphanumeric gets removed from the start.

The workaround

Just avoid /.

In bash, you can use echo -en, e.g.:

  • $ nano "$HOME$(echo -en \\x2F).ssh$(echo -en \\x2F)config" for $ nano ~/.ssh/config.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment