jeroenjanssens / data-science-at-the-command-line

Data Science at the Command Line
https://datascienceatthecommandline.com
Other
3.8k stars 764 forks source link

Rio - Make mktemp call with explicit template to handle OSX version of mktemp #3

Closed mpettis closed 11 years ago

mpettis commented 11 years ago

OSX mktemp' requires a temp file template, but Linuxmktemp' has it as optional. This explicitly uses a template, which works for both. The $TMPDIR is in case it isn't set as an enviroment variable, assumes you have /tmp.