From 9141c76b25e0daf427617903a9a988980075430a Mon Sep 17 00:00:00 2001 From: Josh <46608115+josh-hemphill@users.noreply.github.com> Date: Tue, 20 Oct 2020 07:11:38 -0400 Subject: docs: Mention how to use a specific shell for Deno.run (#7966) --- docs/examples/subprocess.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs/examples/subprocess.md') diff --git a/docs/examples/subprocess.md b/docs/examples/subprocess.md index 137e7d6b4..0e661a63b 100644 --- a/docs/examples/subprocess.md +++ b/docs/examples/subprocess.md @@ -10,6 +10,8 @@ [stdin](https://doc.deno.land/builtin/stable#Deno.stdin), [stdout](https://doc.deno.land/builtin/stable#Deno.stdout) and [stderr](https://doc.deno.land/builtin/stable#Deno.stderr) streams. +- Use a specific shell by providing its path/name and its string input switch, + e.g. `Deno.run({cmd: ["bash", "-c", '"ls -la"']}); ## Simple example -- cgit v1.2.3