Skip to content

feat(builtins): implement mktemp builtin#259

Merged
chaliy merged 1 commit intomainfrom
claude/bashkit-bash-compatibility-BsDKD
Feb 25, 2026
Merged

feat(builtins): implement mktemp builtin#259
chaliy merged 1 commit intomainfrom
claude/bashkit-bash-compatibility-BsDKD

Conversation

@chaliy
Copy link
Contributor

@chaliy chaliy commented Feb 25, 2026

Summary

  • Implement mktemp builtin for creating temporary files and directories in the virtual filesystem
  • Supports -d (create directory), -p DIR (custom prefix directory), -t (use tmpdir), and TEMPLATE with XXXXXX placeholder
  • 7 spec tests covering: basic file creation, /tmp path, directory mode, template substitution, uniqueness, and -p flag

Test plan

  • cargo test --all-features passes
  • cargo clippy --all-targets --all-features -- -D warnings clean
  • cargo fmt --check clean
  • Bash comparison tests pass
  • Spec counts updated (Bash 911→918, Total 1329→1336)

… creation

Supports -d (directory), -p DIR (prefix), -t (tmpdir), and TEMPLATE
with XXXXXX placeholder. Creates files/directories in the virtual
filesystem.

https://claude.ai/code/session_012rzB3FRw7yoQWCG1mxyW7J
@chaliy chaliy merged commit 015cef7 into main Feb 25, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants