From c2edbe848fdafd636595a690e6fa6b43d116457d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Jardim?= Date: Mon, 10 Feb 2025 22:20:18 -0300 Subject: [PATCH] docs(shell): fix incorrect output on "awaiting" example (#17152) --- docs/runtime/shell.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/runtime/shell.md b/docs/runtime/shell.md index 99983bc12f8e68..cb39cdf3f10507 100644 --- a/docs/runtime/shell.md +++ b/docs/runtime/shell.md @@ -56,9 +56,9 @@ By default, `await`ing will return stdout and stderr as `Buffer`s. ```js import { $ } from "bun"; -const { stdout, stderr } = await $`echo "Hello World!"`.quiet(); +const { stdout, stderr } = await $`echo "Hello!"`.quiet(); -console.log(stdout); // Buffer(6) [ 72, 101, 108, 108, 111, 32 ] +console.log(stdout); // Buffer(7) [ 72, 101, 108, 108, 111, 33, 10 ] console.log(stderr); // Buffer(0) [] ```