-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
mktemp: incompatibility between coreutils, BSD (file created in current directory) #4821
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
Comments
On Linux, it is created in pwd:
|
@sylvestre can you double check or share a little bit more about which version of mktemp you're running? I got hold of a Linux machine and I can't reproduce - this is with GNU coreutils.
|
I also tried busybox and can't reproduce.
|
Respectfully, First, some examples of default behaviorSome context from a plain, fresh Debian 12 pre-release instance
And a fresh Debian 11.7 instance:
A fresh alpine:latest instance; this failure makes sense and aligns with what Kevin reports, since it's a Busybox
OK but why?
Busybox:
GNU Coreutils:
macOS's BSD-derived
|
Sorry, I am just dumb ... I was using a system relying on the Rust implementation .... |
Uh oh!
There was an error while loading. Please reload this page.
If I run
mktemp -t foo.XXX
, I expect a file to be created in a temporary directory. Instead with Rust coreutils, a file is created in the current directory.With BSD,
mktemp -t foo.XXX
creates a file in /var/folders/.../... as I expect it to.The text was updated successfully, but these errors were encountered: