The current string quoting (strconv.Quote()) is geared toward go string and is not correct for a shell script fragment https://github.com/fortio/struct2env/blob/main/env.go#L129-L131 thanks @ccmtaylor for the report