Skip to content

Instantly share code, notes, and snippets.

@kevinastone
Created February 11, 2015 07:26
Show Gist options
  • Save kevinastone/aa194e806da4c8553190 to your computer and use it in GitHub Desktop.
Save kevinastone/aa194e806da4c8553190 to your computer and use it in GitHub Desktop.
ENV newlines
env TEST="line1\nline2" python -c "import os; print repr(os.environ['TEST'])"
'line1\\nline2'
env TEST="line1
line2" python -c "import os; print repr(os.environ['TEST'])"
'line1\nline2'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment