Skip to content

Instantly share code, notes, and snippets.

@zeevallin
Created March 16, 2015 13:51
Show Gist options
  • Save zeevallin/5bd158e9e96e003cc140 to your computer and use it in GitHub Desktop.
Save zeevallin/5bd158e9e96e003cc140 to your computer and use it in GitHub Desktop.
$ FOO="hello\nworld" ruby -e 'puts ENV["FOO"].inspect'
# "hello\\nworld"
$ FOO='hello\nworld' ruby -e 'puts ENV["FOO"].inspect'
# "hello\\nworld"
$ FOO=hello\nworld ruby -e 'puts ENV["FOO"].inspect'
# "hellonworld"
$ FOO=hello\\nworld ruby -e 'puts ENV["FOO"].inspect'
# "hello\\nworld"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment