#!/usr/bin/env bash # cygwin-safe.sh — three primitives that defend Larry-Anywhere against the # Cygwin/MobaXterm CR-taint pattern that crashed OAuth in v0.7.3. # # Pattern (full diagnosis in # Deliverables/2026-05-27-cloverleaf-larry-oauth-arithmetic-fix.md and the # v0.7.5 CR-safety sweep deliverable): # # On MobaXterm / Cygwin / Git-Bash-for-Windows, any of the following can # return a string ending in a literal carriage return (\r): # - `$(date +%s)`, `$(date ...)`, `$(cmd)` against a Cygwin-built binary # - `read` of user input (depending on tty mode) # - `cat`/`head`/`tail` against a CRLF-line-ended file # - `$(