{"data":{"status":"unsupported","items":[{"index":0,"bash":{"supported":true,"quoted":"'it'\\''s a $HOME; rm -rf /'","warnings":[],"roundTrip":true},"powershell":{"supported":true,"quoted":"'it''s a $HOME; rm -rf /'","warnings":[],"roundTrip":true},"cmd":{"supported":true,"quoted":"\"it's a $HOME; rm -rf /\"","warnings":[],"roundTrip":true}},{"index":1,"bash":{"supported":true,"quoted":"'C:\\Program Files\\app\\'","warnings":[],"roundTrip":true},"powershell":{"supported":true,"quoted":"'C:\\Program Files\\app\\'","warnings":[],"roundTrip":true},"cmd":{"supported":true,"quoted":"\"C:\\Program Files\\app\\\\\"","warnings":[],"roundTrip":true}},{"index":2,"bash":{"supported":true,"quoted":"'50% off'","warnings":[],"roundTrip":true},"powershell":{"supported":true,"quoted":"'50% off'","warnings":[],"roundTrip":true},"cmd":{"supported":false,"reason":"cmd expands %name% even inside double quotes and caret escaping does not stop it; a literal percent cannot be carried safely on a command line","warnings":[]}},{"index":3,"bash":{"supported":true,"quoted":"plain-text.txt","warnings":[],"roundTrip":true},"powershell":{"supported":true,"quoted":"'plain-text.txt'","warnings":[],"roundTrip":true},"cmd":{"supported":true,"quoted":"plain-text.txt","warnings":[],"roundTrip":true}}],"witnesses":[{"ruleId":"shell-quote.cmd.unsupported","detail":"cmd expands %name% even inside double quotes and caret escaping does not stop it; a literal percent cannot be carried safely on a command line","path":"values[2]","index":2,"actual":"50% off"}],"versions":{"bash":"POSIX.1-2024 Issue 8 Shell Command Language s2.2 (fetched 2026-11-04)","powershell":"about_Quoting_Rules powershell-7.6, ms.date 2024-09-09 (fetched 2026-11-04)","cmd":"cmd reference ms.date 2025-05-23; MSVC argv parsing ms.date 2021-12-09 (fetched 2026-11-04)"},"limits":["At most 50 values of 4096 characters, 100000 in total.","roundTrip is a check against this module's model of each shell's quoting rules, not an execution in a real shell.","cmd.exe has no complete escape: a double quote, a percent sign, a line break or a control character is reported unsupported rather than quoted. Quoted cmd words are checked against the Microsoft C runtime argv rules only; programs with their own parsing (many .bat, msiexec, findstr) may differ.","Quote one argument at a time and never inside a string that a second shell re-parses."],"deterministic":true},"_provenance":{"version":"writerslogic-provenance/1","issuer":"did:web:agents.writerslogic.com","verify":{"endpoint":"POST /api/v1/verify-provenance","did":"did:web:agents.writerslogic.com"},"manifest":{"format":"application/json","instance_id":"xmp:iid:8637ee16-50c7-4478-b256-ae2e592a2f09","claim_generator_info":[{"name":"WritersLogic x402 Agent Hub","version":"2.0.0"}],"title":"Shell quoting for bash, PowerShell and cmd.exe with a parse-back check","assertions":[{"label":"c2pa.actions.v2","data":{"actions":[{"action":"c2pa.created","when":"2026-11-06T01:30:29.810Z","softwareAgent":{"name":"writerslogic-agent-hub/shell-quote","version":"2.0.0"},"digitalSourceType":"http://cv.iptc.org/newscodes/digitalsourcetype/algorithmicMedia","parameters":{"endpoint":"POST /api/v1/shell-quote","inputDigest":{"alg":"sha256","hash":"b5ec8ccd9f23b2f48c604a7f1452f87810899cbbde924bcb0595f5fb0a354b33","canonicalization":"JCS"}}}]}},{"label":"c2pa.hash.data","data":{"alg":"sha256","hash":"1f88256ca2c0c18d184c707beeb127e1ac7b8c274043c36d600165b68a51afa1","name":"jcs-canonical-json(data)"}}]},"credential":{"@context":["https://www.w3.org/ns/credentials/v2"],"id":"urn:uuid:715aa8bb-ec4c-4f03-9824-2bad19cdf7d7","type":["VerifiableCredential","AgentOutputCredential"],"issuer":"did:web:agents.writerslogic.com","validFrom":"2026-11-06T01:30:29.810Z","credentialSubject":{"id":"urn:sha256:1f88256ca2c0c18d184c707beeb127e1ac7b8c274043c36d600165b68a51afa1","agent":"shell-quote","endpoint":"POST /api/v1/shell-quote","outputDigest":{"alg":"sha256","value":"1f88256ca2c0c18d184c707beeb127e1ac7b8c274043c36d600165b68a51afa1","canonicalization":"JCS"},"inputDigest":{"alg":"sha256","value":"b5ec8ccd9f23b2f48c604a7f1452f87810899cbbde924bcb0595f5fb0a354b33","canonicalization":"JCS"},"manifestDigest":{"alg":"sha256","value":"d6885f93a42f963a0c3e4be944e5720b4b4fde905a406e3a2dc3488f9c80fa9d","canonicalization":"JCS"},"ingredients":[],"payment":{"scheme":"api-key","network":"eip155:8453","payer":"sample"}},"proof":{"type":"DataIntegrityProof","cryptosuite":"eddsa-jcs-2022","created":"2026-11-06T01:30:29.810Z","verificationMethod":"did:web:agents.writerslogic.com#key-1","proofPurpose":"assertionMethod","proofValue":"zUutpQLgF2tAFueJSnhvScUiwm6K4JsijekTXkS5QrU1zEPYF6dQaBZnrNRSHbQzHnD81oAJ1PCa3QCYV5ihVt2d"}},"ethSignature":{"type":"EIP-191","signer":"did:pkh:eip155:8453:0x3DBd42560cA7a7E448A2c7DfC9E785526189411f","address":"0x3DBd42560cA7a7E448A2c7DfC9E785526189411f","message":"writerslogic-provenance:c0dd49756e5e639ee86727363ffb1079c0d978020890430b49c6ef1c4bfcb95a","signature":"0x65edb55fe258833882fd970aa7fc4efefb93acae186d89acb8d4cbdf684ab9bf7c74588f51b859f80a0026dec83a6f8c6f669ef86408ca6b22114040ae044cfa1c"}}}