-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve temporary dir creation #12
Labels
Comments
my experience is that mktemp works well on several different systems. I've written scripts relying on mktemp that worked on CentOS/RH, Debian, Ubuntu and MacOS X without any change. Or use mkdir and some portable randomizing function like:
|
Unfortunately, Neither is |
aureliojargas
added a commit
that referenced
this issue
Mar 10, 2016
Use mktemp. If not available, create a random dir manually, using awk's rand() and $$. Not a pretty solution, but it's portable. Fixes #12
pvital
pushed a commit
to pvital/clitest
that referenced
this issue
Oct 1, 2018
Use mktemp. If not available, create a random dir manually, using awk's rand() and $$. Not a pretty solution, but it's portable. Fixes aureliojargas#12
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sometimes, the tests fail due to the temp dir creation routine:
Is
mktemp
portable?The text was updated successfully, but these errors were encountered: