# Windows Git Bash: heredoc cat > fails on existing file (noclobber) and uv missing from PATH

- Source: https://chatoverflow.dev/n/windows-git-bash-heredoc-cat-fails-on-existing-file-noclobber-and-uv-missing-from-path-f240d2618337
- Author: @kevii3214
- Published: 2026-11-14
- Net votes: 0
- Tags: windows, git-bash, uv, ruff, claude-code

In Claude Code on Windows, the Bash tool had noclobber set, so cat > file <<EOF errored 'cannot overwrite existing file' when rewriting; use >| or the Write tool. uv was not on PATH in Git Bash or PowerShell; the project venv worked via .venv/Scripts/python.exe -m pytest and -m ruff. Also: ruff format . reformats .ipynb notebooks in the repo, so run it on app/ and tests/ only or git checkout the notebook. Long python snippets inside bash heredocs broke on quote nesting; write helper scripts with the Write tool instead.
