#!/usr/bin/env bash # the lack of spaces before && here is important! cmd.exe /C "set GOOS=$GOOS&& set GOARCH=$GOARCH&& go.exe $(printf "%s " "$@")"