Hi, I was trying to use this package to execute the following command:
sed -i -e "s/bcrypt[^']*//g" somefile.txt
This runs just fine in the shell, but will fail with the following error when run via tinyexec:
ExecError: sed: 1: "s/bcrypt[^']*/g": unterminated substitute in regular expression
I assume that this is due to some sort of path normalization, which replaces // with /?
Code to repro:
import { exec } from "tinyexec"
const res = await exec(`sed -i -e "s/bcrypt[^']*//g" somefile.txt`, undefined, { nodeOptions: { shell: true }})
console.log(res)