chore: change example to use no shell

This commit is contained in:
2025-08-16 21:56:54 +02:00
parent 10b86d4a1b
commit 4ae0545ab4
2 changed files with 2 additions and 2 deletions

View File

@@ -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();