[Bug] File corruption when executing PowerShell backtick escaping from WSL Bash
Resolved 💬 3 comments Opened Dec 20, 2025 by GigiTiti-Kai Closed Feb 14, 2026
Bug Description
報告内容の例
## バグ報告: WSL Bash から PowerShell 実行時のファイル破損
### 環境
- OS: Windows (WSL)
- Claude Code version: 2.0.72
### 再現手順
- Bash から PowerShell コマンドでバッククォート置換を実行
- コマンド:
powershell -Command "... -replace '\\\', '`' ..."
### 期待される動作
バッククォートのエスケープが正しく処理される
### 実際の動作
- Bash がバッククォートをコマンド置換として解釈
- コマンドが部分的に実行され、ファイルが破損(各行先頭にバッククォートが追加)
### 提案
- 複雑なシェル間連携が必要な場合の警告
- または Edit ツールでのバッククォート処理の改善
Environment Info
- Platform: win32
- Terminal: windows-terminal
- Version: 2.0.72
- Feedback ID: 6f33a5d6-d006-4abb-8ad3-41e9bcb26018
Errors
[{"error":"jdD: Diagnostics file path mismatch: expected E:\\obsidian_brain\\10_Notes\\SNS自動情報収集システム設計書.md, got file://e:\\obsidian_brain\\10_notes\\sns自動情報収集システム設計書.md/)\n at beforeFileEdited (B:/~BUN/root/claude.exe:1103:50953)\n at async call (B:/~BUN/root/claude.exe:1768:659)\n at async wi1 (B:/~BUN/root/claude.exe:2065:17490)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-20T00:08:38.881Z"},{"error":"jdD: Diagnostics file path mismatch: expected E:\\obsidian_brain\\10_Notes\\SNS自動情報収集システム設計書.md, got file://e:\\obsidian_brain\\10_notes\\sns自動情報収集システム設計書.md/)\n at beforeFileEdited (B:/~BUN/root/claude.exe:1103:50953)\n at async call (B:/~BUN/root/claude.exe:1768:659)\n at async wi1 (B:/~BUN/root/claude.exe:2065:17490)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-20T00:08:39.935Z"},{"error":"Error: Request was aborted.\n at _createMessage (B:/~BUN/root/claude.exe:415:3157)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-20T00:09:11.680Z"},{"error":"jdD: Diagnostics file path mismatch: expected E:\\obsidian_brain\\10_Notes\\markdownlintルール一覧.md, got file://e:\\obsidian_brain\\10_notes\\markdownlintルール一覧.md/)\n at beforeFileEdited (B:/~BUN/root/claude.exe:1103:50953)\n at async call (B:/~BUN/root/claude.exe:1768:659)\n at async wi1 (B:/~BUN/root/claude.exe:2065:17490)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-20T00:10:55.506Z"},{"error":"jdD: Diagnostics file path mismatch: expected E:\\obsidian_brain\\10_Notes\\markdownlintルール一覧.md, got file://e:\\obsidian_brain\\10_notes\\markdownlintルール一覧.md/)\n at beforeFileEdited (B:/~BUN/root/claude.exe:1103:50953)\n at async call (B:/~BUN/root/claude.exe:1768:659)\n at async wi1 (B:/~BUN/root/claude.exe:2065:17490)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-20T00:11:16.182Z"},{"error":"jdD: Diagnostics file path mismatch: expected E:\\obsidian_brain\\10_Notes\\Obsidianショートカットのまとめ.md, got file://e:\\obsidian_brain\\10_notes\\obsidianショートカットのまとめ.md/)\n at beforeFileEdited (B:/~BUN/root/claude.exe:1103:50953)\n at async call (B:/~BUN/root/claude.exe:1768:659)\n at async wi1 (B:/~BUN/root/claude.exe:2065:17490)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-20T00:11:26.996Z"},{"error":"jdD: Diagnostics file path mismatch: expected E:\\obsidian_brain\\10_Notes\\Claude Code SessionEnd Hook使用例.md, got file://e:\\obsidian_brain\\10_notes\\claude code sessionend hook使用例.md/)\n at beforeFileEdited (B:/~BUN/root/claude.exe:1103:50953)\n at async call (B:/~BUN/root/claude
Note: Error logs were truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗