From 4ae0545ab472c1296efe29c03f741c53aa869f0b Mon Sep 17 00:00:00 2001 From: Jonas Kattendick Date: Sat, 16 Aug 2025 21:56:54 +0200 Subject: [PATCH] chore: change example to use no shell --- README.md | 2 +- example.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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();