53e9753d23
The vendored uu-stat routed every non-Unix invocation to a stub that printed "stat: unsupported on this platform" and exited 1, so the bash tool's stat builtin was dead on native Windows even though it was still advertised and registered. Add a Windows-native backend that reimplements the GNU stat directives on top of std::fs::Metadata, the windows_by_handle metadata extensions (inode, hard-link count, and device via GetFileInformationByHandle), and the Win32 volume APIs for --file-system mode. Permission bits, file type, and timestamps are synthesized from Windows attributes; ownership fields that have no Windows equivalent report 0/UNKNOWN. The format parser, printer, and BSD-compat layer are now shared across platforms and Unix behavior is unchanged. Fixes #6723