birgerspB
Denoβ€’3y agoβ€’
5 replies
birgersp

Deno.Command arg with an asterisk?

I am trying to execute a shell command from Deno, where one of the command args contains an asterisk. Example:
const output = new Deno.Command("cp", { args: ["source/*", "destination"] }).outputSync()
console.error(new TextDecoder().decode(output.stderr))


It yields:
cp: cannot stat 'source/*': No such file or directory

Q: How can I pass an asterisk to one of the Deno.Command args?
Was this page helpful?