Claude Code v2.0.57 ·
Output Redirection with cd Command Protection
EntryKind: in v2.0.57,
ChangesSection of the release
What: Commands that combine directory changes (cd) with output redirection (>, >>) now require explicit user approval.
Details:
- Prevents potential path resolution bypass when final working directory cannot be determined
- Error message: "Commands that change directories and write via output redirection require explicit approval"
- Applies to compound commands like
cd /tmp && echo "data" > file.txt - Single commands without
cd or without redirection are unaffected - Evidence: Enhanced function
j85() at line 310479, new parameter G for cd detection
See this entry in the whole of v2.0.57 →