Skip to content

Instantly share code, notes, and snippets.

@jarib
Created January 31, 2013 14:19
Show Gist options
  • Save jarib/4683145 to your computer and use it in GitHub Desktop.
Save jarib/4683145 to your computer and use it in GitHub Desktop.
$ TMPDIR=/tmp/foo ruby -r tmpdir -e 'p Dir.tmpdir'
"/tmp/foo"
$ rmdir /tmp/foo
$ TMPDIR=/tmp/foo ruby -r tmpdir -e 'p Dir.tmpdir'
"/tmp"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment