We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stdCmd
Denon's stdCmd() function does not parse/split the command correctly.
stdCmd()
To Reproduce
cmd: "bash -c 'echo \"HELLO\"'"
Expected behavior
This command ["bash", "-c", "'echo "HELLO\"'"] should be executed. Instead, [ "bash", "-c", "'echo", "HELLO"' ] is executed.
["bash", "-c", "'echo "HELLO\"'"]
[ "bash", "-c", "'echo",
]
Configuration or Project
scripts: dev: - "bash -c 'echo \"HELLO\"'"
Screenshots
Setup
deno 1.46.3 (stable, release, aarch64-apple-darwin)
v2.5.0
Additional context
I think stdCmd should consider quotes while splitting the command. I think this might be a good candidate (https://github.com/rgov/node-shlex)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Denon's
stdCmd()
function does not parse/split the command correctly.To Reproduce
cmd: "bash -c 'echo \"HELLO\"'"
.Expected behavior
This command
["bash", "-c", "'echo "HELLO\"'"]
should be executed. Instead,[ "bash", "-c", "'echo",
"HELLO"']
is executed.Configuration or Project
Screenshots
Setup
deno 1.46.3 (stable, release, aarch64-apple-darwin)
v2.5.0
Additional context
I think
stdCmd
should consider quotes while splitting the command. I think this might be a good candidate (https://github.com/rgov/node-shlex)The text was updated successfully, but these errors were encountered: