SHELL_SESSIONS_DISABLE and Other macOS Shell Environment Setup

The four environment variables TermOnMac sets before execvp — TERM, LANG, SHELL_SESSIONS_DISABLE, TERMONMAC_SESSION — and why each matters for a programmatic PTY.