mktemp --directory relative to cwd
Author: DoruminCreated Sep 9, 2026Updated Sep 9, 2026
Labelsstatus:needs-triage
Bug report form
- I have done a basic search of the issue tracker to find any existing issues that are similar.
- I have checked that my version is at least the latest stable release available via my installation method.
Describe the bug
mktemp should not default to tmpdir given a template pattern and the --directory flag
How to reproduce
mktemp --directory tmpdir.XXX
Expected behavior
Its documentation states that if a template is passed, it's interpreted as relative to cwd
Configuration
| key | value |
|---|---|
| version | 0.115.0 |
| major | 0 |
| minor | 115 |
| patch | 0 |
| branch | |
| commit_hash | |
| build_os | windows-x86_64 |
| build_target | x86_64-pc-windows-msvc |
| rust_version | rustc 1.97.1 (8bab26f4f 2026-07-14) |
| rust_channel | stable-x86_64-pc-windows-msvc |
| cargo_version | cargo 1.97.1 (c980f4866 2026-06-30) |
| build_time | 2026-08-19 00:54:36 -03:00 |
| build_rust_channel | release |
| allocator | standard |
| features | default, helix, lsp, mcp, network, plugin, rustls-tls, sqlite, trash-support |
| installed_plugins | jwalk 0.26.0, polars 0.111.0, query 0.100.0 |
| experimental_options | example=false, dc-glob=false, reorder-cell-paths=true, pipefail=true, enforce-runtime-annotations=true, native-clip=false, cell-path-types=false |
Source: nushell/nushell