Known environment failures on this machine (Windows + Git Bash).Not applicable in other environments: These failures do not occur on WSL, CI, or remote machines; judge according to each environment. Only facts verified on this machine are recorded here.
Known failures
rg、find、sed(and certaincatpipe combinations) on this machine's Git Bash may directly throwMaximum call stack size exceededandproduce no results. Such failures are not a problem with the command logic; retrying will only repeat the failure—switch directly to the alternatives below.
Alternatives
- Search file contents → built-in
greptool (pattern is a Rust regex, no lookahead/backreferences; for literal search enableliteral) - Find files by glob → built-in
findtool - Text replacement →
edittool (exact oldText matching; a single call can contain multiple non-overlapping edits) - Read file →
readtool - bash is only for pipelines/combinations that built-in tools cannot express, and prefer
ls、git、head、cat(single file) and other commands that are reliable in this environment