{"version":"2.0.57","anchor":"output-redirection-with-cd-command-protection","canonical_anchor":"output-redirection-with-cd-command-protection","heading":"Output Redirection with cd Command Protection","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.0.57\/e\/output-redirection-with-cd-command-protection","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.0.57","markdown":"### Output Redirection with cd Command Protection\n\n**What:** Commands that combine directory changes (`cd`) with output redirection (`>`, `>>`) now require explicit user approval.\n\n**Details:**\n\n- Prevents potential path resolution bypass when final working directory cannot be determined\n- Error message: \"Commands that change directories and write via output redirection require explicit approval\"\n- Applies to compound commands like `cd \/tmp && echo \"data\" > file.txt`\n- Single commands without `cd` or without redirection are unaffected\n- **Evidence**: Enhanced function `j85()` at line 310479, new parameter `G` for cd detection"}