Fix command execution to support shell features like deno task#77
Draft
Fix command execution to support shell features like deno task#77
deno task#77Conversation
…her complex commands Co-authored-by: Hexagon <419737+Hexagon@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix bug in issue #55
Fix command execution to support shell features like Nov 16, 2025
deno task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Commands containing multi-word subcommands (e.g.,
deno task start,npm run build) were failing with "Module not found" errors. The dax-sh library executes commands directly without shell interpretation, causingdeno task startto be parsed asdeno ["task", "start"]where "task" is treated as a file path.Changes
lib/core/runner.ts
sh -con Unix,cmd /con Windows) to enable proper parsing of complex commands, pipes, redirects, and other shell featurestest/core/runner.test.ts
deno taskexecution with working directory and task configurationBefore:
After:
This enables commands to be interpreted exactly as they would in a terminal, resolving the issue for
deno taskand similar multi-word commands while maintaining support for pipes, redirects, and environment variable expansion.Fixes #55
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
dl.deno.landcurl -s REDACTED(dns block)jsr.iodeno test test/core/REDACTED.test.ts --allow-read --allow-write --allow-env --allow-net --allow-sys --allow-run(dns block)deno test test/core/REDACTED.test.ts --allow-read --allow-write --allow-env --allow-net --allow-sys --allow-run --unsafely-ignore-certificate-errors(dns block)deno run --allow-read --allow-run --allow-env test-dax.ts(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.