You want to use waitForCommand: instead of command:, like
I once reported a bug for OSProcess on MacOSStill experience the same problem, is this suppose to be fixed with new OSProcess ?
https://pharo.fogbugz.com/f/cases/16944/OSProcess-stdout-is-not-returned-back-to-pharo