diff --git a/README.md b/README.md index 7f46094..b829f00 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ require_once __DIR__ . '/vendor/autoload.php'; $child = (new Command('/usr/bin/cat')) ->stdin(Stdio::piped('r')) - ->spawn(shell: true); + ->spawn(shell: false); $child->stdin?->write('Hello, this is pretty cool.'); $child->stdin?->close(); diff --git a/example.php b/example.php index 1933a4c..5c17e3d 100644 --- a/example.php +++ b/example.php @@ -16,7 +16,7 @@ var_dump($output); $child = (new Command('/usr/bin/cat')) ->stdin(Stdio::piped('r')) - ->spawn(shell: true); + ->spawn(shell: false); $child->stdin?->write('Hello, this is pretty cool.'); $child->stdin?->close();