Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: print shell commands safely #5279
The printing of commands by the go tool is simple-minded, can be incorrect in the face of empty strings and other issues, ignores system-dependent issues ($foo vs %foo; quoting, etc.) and should be improved. The current setup just calls Printf or special formatting routines that sometimes (not always) expand variables, and ignore local quoting and other conventions (rm vs. del for example). It's not important but it is worth doing right. It's a big job.