Cross-Platform Bash Compatibility Canonical replacement patterns for shell constructs that break on Windows Git Bash, macOS, or both. Always use these patterns in workspace-hub scripts. Quick Reference — Replacement Table | Broken Pattern | Breaks On | Portable Replacement | |----------------|-----------|----------------------| | | Git Bash (no bc) | | | | Git Bash | | | | Windows | (use resolver below) | | | Git Bash | | | | macOS | | | | all (set -e) | Guard with | | | Linux/Git Bash | | Patterns in Detail Float Comparison Without bc Division / Percentages Without bc Platform-Aware Python R…