Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
variable shellRun
import { shellRun } from "https://deno.land/x/simple_shell@0.12.0/src/ds.ts";

Run a command with a specified shell

It should be used as workaround when the default quoting of arguments doesn't work, example: echo 'hello world'

Quoting currently relies on splitting by white-space and doesn't handle quoted arguments correctly

Hopefully this can be fixed in the future but for now shellRun can be used as an escape hatch

type

(unnamed 0: { shell: string; shellExecFlag: string; cmd: string; }) => unknown