May be a bug here. it need to guarantee `cmd` does not have space or quote mark issue.