Unverified50% confidenceFactExact time
When Node.js's exec() or spawn() is called with shell: true, the operating system first passes the entire command string to /bin/sh for parsing before execution.
1
Sources
50%
Confidence
Long-term
Relevance
10/11/2026
First Seen
Sources
Related Entities
Related Claims
UnverifiedThe fundamental difference between exec and execFile is that exec accepts an entire string and passes it to the shell for parsing by default, whereas execFile launches the executable directly, bypassing the shell.68% similarUnverifiedexecline采用链式执行模型,每个命令通过exec()系统调用替换自身为下一个命令,没有常驻解释器进程61% similarUnverifiedCLI-form agents run in shell environments (such as bash or zsh) and can execute arbitrary system commands, call scripts, and manipulate the file system without restriction.55% similarUnverifiedBash是绝大多数Linux发行版和macOS的默认Shell,是一门图灵完备的脚本语言53% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/999582API
curl https://kongchang.com/api/v1/knowledge/claims/999582MCP
get_claim(id=999582)