This documents version 0.2.2. The support recordtracks platform verification and exact-version publication evidence separately.
Create one or more directories. Supports recursive parent creation (-p),numeric octal modes (-m), and verbose output (-v). Failed operands do notstop later directories from being attempted.
Without -m, new directories use 0777 & ~umask. With -p -m MODE, only therequested leaf receives MODE; newly created parents use the default mode.Existing directories accepted by -p keep their permissions. Numeric -mis applied after creation so the requested leaf mode is not reduced by umask.The command supports symbolic modes evaluated from 0777:explicit u/g/o/a classes, +/-/=, rwx/X, setuid/setgid/sticky bits, sequentialcopied classes and comma clauses. X applies because the target is a directory.Sticky modes follow GNU new-directory ordering: +t yields 01755,a=rwx,+t yields 01777, and +t,a=rwx yields 0777.Omitted-who expressions are accepted when their final result is provablyindependent of all POSIX umasks, including +w and later explicit overrides.Expressions whose final value requires the unavailable process umask failbefore creation with status 2 and an explicit capability diagnostic. No umaskis guessed from environment, effective access or probe-file permissions.
Parent creation retains its ordinary POSIX behavior. Exact GNU ownerwrite/search additions under restrictive umasks, preservation of inheriteddirectory special bits, and Windows permission-bit semantics require actualumask/permission observation unavailable in the released portable APIs.New symbolic leaves explicitly reject platforms where the portable permissionsetter is unavailable; existing directories accepted by -p need no setter.Calculated symbolic modes and real per-platform setter effects are separateclaims. Frozen published coordinates remain unchanged.
Standalone --version prints exactly mkdir 0.2.2 followed by onenewline. Standalone --help starts with Usage: mkdir, 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.