Question
I ran into a Windows shell-chain case and wanted to check the intended behavior before treating it as a bug.
Example:
type package.json | findstr verify
On Windows, type is a cmd.exe built-in, not a standalone executable. If Reasonix parses the chain and runs each segment directly with no shell, then the left side tries to spawn type and fails because there is no type.exe on PATH.
That may be expected, especially if the chain runner intentionally avoids invoking a shell for safety/control.
What I’m asking
Should parsed chains support Windows cmd.exe built-ins such as type, dir, and echo inside chain segments, or should users/models avoid those and use native tools like read_file / search_content instead?
Possible outcomes
Either seems reasonable:
- document that parsed chains do not invoke
cmd.exe / shell built-ins, so Windows users should avoid type | findstr patterns
- or add Windows-specific handling so built-in segments can route through
cmd.exe /c when needed
Notes
This is separate from the Windows backslash quoting issue. This question is only about shell built-ins inside parsed chains.
Non-goals
- no broad shell parser rewrite
- no
shell: true behavior change unless intentionally chosen
- no filesystem tool changes
- no
CHANGELOG.md
Question
I ran into a Windows shell-chain case and wanted to check the intended behavior before treating it as a bug.
Example:
On Windows,
typeis acmd.exebuilt-in, not a standalone executable. If Reasonix parses the chain and runs each segment directly with no shell, then the left side tries to spawntypeand fails because there is notype.exeon PATH.That may be expected, especially if the chain runner intentionally avoids invoking a shell for safety/control.
What I’m asking
Should parsed chains support Windows
cmd.exebuilt-ins such astype,dir, andechoinside chain segments, or should users/models avoid those and use native tools likeread_file/search_contentinstead?Possible outcomes
Either seems reasonable:
cmd.exe/ shell built-ins, so Windows users should avoidtype | findstrpatternscmd.exe /cwhen neededNotes
This is separate from the Windows backslash quoting issue. This question is only about shell built-ins inside parsed chains.
Non-goals
shell: truebehavior change unless intentionally chosenCHANGELOG.md