diff options
author | Josh <46608115+josh-hemphill@users.noreply.github.com> | 2020-10-20 07:11:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-20 13:11:38 +0200 |
commit | 9141c76b25e0daf427617903a9a988980075430a (patch) | |
tree | c5a406aa3d99d9b27dd41a28c262a6161eb0ce20 /docs/examples | |
parent | 65dc86ebc3b97a0463a47a9a64786b268f62188b (diff) |
docs: Mention how to use a specific shell for Deno.run (#7966)
Diffstat (limited to 'docs/examples')
-rw-r--r-- | docs/examples/subprocess.md | 2 |
1 files changed, 2 insertions, 0 deletions
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 |