Skip to main content
Latest
variable shellRun
import { shellRun } from "https://deno.land/x/simple_shell@0.14.1/mod.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