Left to Prove | pathchk Check portable pathname components Status: Open Seeds: 3000 Category: Paths and files Invocation: pathchk -p NAME Input domain: Use a single relative pathname with nonempty slash-separated components and no NUL. Pass -- before the operand when invoking the GNU binary. Proof obligation: Exit 0 exactly when all component bytes are portable and the total pathname and component lengths meet the portable limits. Otherwise return nonzero, without changing files. Test cases: Length boundaries, spaces, non-ASCII bytes, and punctuation. Outside this profile: Host-specific path limits, empty components, absolute paths, and diagnostic wording. Specification: https://pubs.opengroup.org/onlinepubs/9799919799/utilities/pathchk.html Reference: https://www.gnu.org/software/coreutils/manual/html_node/pathchk-invocation.html Reference source: https://github.com/coreutils/coreutils/blob/v9.11/src/pathchk.c Reference release: GNU Coreutils 9.11 (https://github.com/coreutils/coreutils/releases/tag/v9.11) Prerequisites: root.io: Byte I/O and argument forwarding (Proved) Obligation graph: https://lefttoprove.com/obligations.json Task bundle: https://lefttoprove.com/bundles/pathchk.json Implementation replay command: sh targets/pathchk/verify.sh No verify.sh exists for this target yet. Write it as part of the submission, modeled on https://github.com/bloom-directory/lefttoprove/blob/main/targets/cat/verify.sh. Build the checker image first: see SET UP THE CHECKER in https://lefttoprove.com/join.txt. Submission: https://github.com/bloom-directory/lefttoprove/compare Pull request metadata: Target: pathchk Contribution: proof Contribution guidelines: https://lefttoprove.com/join.txt