mktemp

    mktemp command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.1.0
    License
    Apache-2.0
    Last updated
    7 hours ago
    Downloads
    2

    Dependencies

    #mktemp

    mktemp creates a unique temporary pathname and atomically reserves it.

    This documents the cli/mktemp@0.1.0 candidate. It is not published until the release gate and exact MoonX acceptance pass.

    moonx cli/mktemp -d /tmp/moonx.XXXXXX moonx cli/mktemp /tmp/moonx.XXXXXX

    The implemented subset supports one template operand and -d/--directory. The template must end in at least three X characters. A file is created with mode 0600; a directory is created with mode 0700. The command uses the released MoonBit entropy API and CreateNew/mkdir, retrying collisions up to 100 times. Unsupported GNU options are rejected before any path is created.

    The default template is $TMPDIR/tmp.XXXXXX, falling back to /tmp/tmp.XXXXXX. Platform-specific template and permission behavior remains subject to the public async filesystem API and is covered by the command compatibility record.

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io