1
0
mirror of https://github.com/danog/process.git synced 2024-12-13 09:37:29 +01:00

Add the actual command on Windows

This commit is contained in:
Niklas Keller 2017-07-19 09:27:18 +02:00
parent 5aa6ae7e02
commit 7d2bb00b25

View File

@ -161,6 +161,8 @@ class Process {
if ($this->cwd !== null) { if ($this->cwd !== null) {
$command .= ' "--cwd=' . \rtrim($this->cwd, '\\') . '"'; $command .= ' "--cwd=' . \rtrim($this->cwd, '\\') . '"';
} }
$command .= " {$this->command}";
} else { } else {
$command = \sprintf( $command = \sprintf(
'{ (%s) <&3 3<&- 3>/dev/null & } 3<&0;' . '{ (%s) <&3 3<&- 3>/dev/null & } 3<&0;' .