Make a shell script work reliably across Linux, macOS, and BSD by resolving GNU-vs-BSD tool differences, bashisms, and path assumptions.
## CONTEXT A script that works on a developer's Mac can break on a Linux CI runner or a BSD server because core utilities differ subtly: sed -i, date, readlink, grep flags, and stat all diverge between GNU and BSD. In 2026, with mixed fleets of Apple Silicon laptops and Linux containers, cross-platform shell…
Premium Prompt
Unlock this prompt — and all 25,000+ expert-crafted prompts — with Pro.
Unlock with Pro