Left to Prove | printenv Read a single environment value Status: Open Seeds: 2000 Category: System and processes Invocation: printenv NAME Input domain: Use one nonempty variable name without equals, NUL, or leading hyphen. Model a finite map with unique variable names. Proof obligation: If NAME is present, write exactly its value followed by LF and return 0. For a missing name, return 1 with empty output. Test cases: Empty, absent, multiline, and similarly named values. Outside this profile: Bulk environment output, multiple names, and alternate delimiters. Specification: https://www.gnu.org/software/coreutils/manual/html_node/printenv-invocation.html Reference: https://www.gnu.org/software/coreutils/manual/html_node/printenv-invocation.html Reference source: https://github.com/coreutils/coreutils/blob/v9.11/src/printenv.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/printenv.json Implementation replay command: sh targets/printenv/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: printenv Contribution: proof Contribution guidelines: https://lefttoprove.com/join.txt