dsherret / dax

Cross-platform shell tools for Deno and Node.js inspired by zx.
MIT License
964 stars 33 forks source link

fix: `escapeArg` was not escaping multiple quotes #194

Closed Ryooooooga closed 6 months ago

Ryooooooga commented 7 months ago
import $ from "https://deno.land/x/dax/mod.ts";
import $2 from "./mod.ts"; // this branch

await $2`echo ${`'abc'`}`; // 'abc'
await $`echo ${`'abc'`}`; // error: Uncaught "Expected closing single quote.\n  '\n  ~"