Version 0.2.2 behavior is documented here. Thesupport record separates local verification frompublished MoonX behavior; moonx examples use registry releases.
List files without invoking a host command. Supports hidden entries (-a,-A), directory operands (-d), type indicators (-F, including executable*), one-entry-per-line output (-1), recursion (-R), reverse order (-r),time sorting (-t, selecting access/status time with -u/-c or --time),regular-file size sorting (-S), and -H/-L/-P link-following selection. Tiesuse C-locale byte order. -u, -c and --time imply time sorting unless anexplicit -S selects size sorting. The last -S/-t wins; the last timeselector wins independently. Multiple file operands are sorted too.
When -L cannot dereference a directory entry, ls reports failure and stillprints that entry. With -F, a dangling symbolic link retains its @ marker,matching GNU coreutils 9.11.
-H follows command-line links; -L also follows links found in directories.The last -H/-L/-P wins. With none of these options, command-line links todirectories are followed unless -d or -F is present. -d lists a directoryoperand itself, even with -R; -F classifies the selected link or target.Dangling links requested through -H/-L produce diagnostics: command-lineaccess failures exit 2; failures on entries within a readable directory exit 1while retaining the names and other entries. -P/--no-dereference is a projectextension (GNU ls 9.11 does not accept -P).Long listing, ownership, permissions, inode/link counts, blocks, and full colorrules remain outside the portable profile. -S rejects a set containing anon-regular entry before listing it. Sorting multiple directory operands bysize is also rejected because public directory size metadata is unavailable.
The byte-order implementationdoes not rewrite locale environment variables; file-access authorizationbelongs to the caller or host.
Standalone --version prints exactly ls 0.2.2 followed by onenewline. Standalone --help starts with Usage: ls, 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.