Version 0.2.2 behavior is documented here. Thesupport record separates local verification frompublished MoonX behavior; moonx examples use registry releases.
Remove files, empty directories with -d, or directory trees with -r/-R.Supports force (-f) and verbose (-v) modes. Recursive deletion never follows symboliclinks and refuses final dot/dot-dot operands. Windows accepts both slash andbackslash separators for this operand check; on POSIX a backslash remains partof the filename. Root protection is on by default and follows--preserve-root / --no-preserve-root; an explicitly named cwddoes not receive an extra repository policy. Operand failures donot prevent later safe operands from being processed; the final status recordsany failure. File access authorization belongs to the caller or host. Accepting--no-preserve-root does not establish a tested root-deletion contract; thatdestructive operation is not part of the validation fixtures.
The command supports -i and bare--interactive/--interactive=always, reading one response line from stdinafter each prompt on stderr. An affirmative starts with y/Y; leading spacesare not trimmed, EOF declines, and a final unterminated response is accepted.Recursive confirmation prompts before descending into nonempty directories,then for each child and the final directory removal. A child refusal stillpermits the later parent prompt and attempted removal, as GNU does.Traversal uses an explicit stack and does not follow symbolic links.Prompt, verbose and error labels retain the original operand spelling; generatedchild components use / while filesystem access uses the platform path.
-I/--interactive=once prompts once before inspection for recursive removalor more than three original operands. Declining returns success and preservesall operands. -f clears interaction and ignores missing files; selectingalways/once later restores missing-file diagnostics. --interactive=neverclears prompts while retaining the current ignore-missing state. The optionsare applied in argument order. GNU no/none/yes aliases and unambiguousprefixes are accepted. Explicit interaction works with piped stdin and doesnot require a terminal or a separate /dev/tty channel.
Implicit terminal-sensitive write-protection prompting still needs a releasedisatty API. Explicit prompts use real effective-write access for their labels;permission bits are not fabricated. Published coordinates remain frozen.
Standalone --version prints exactly rm 0.2.2 followed by onenewline. Standalone --help starts with Usage: rm, lists bothmetadata options, and ends with a newline. Both write to stdout, leave stdinunread, and exit with status 0. Exact-version publication and verificationremain recorded separately in the support record.