We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d989402 commit fb4e871Copy full SHA for fb4e871
codex-rs/core/src/command_safety/windows_safe_commands.rs
@@ -153,8 +153,16 @@ fn is_safe_powershell_command(words: &[String]) -> bool {
153
.to_ascii_lowercase();
154
if matches!(
155
inner.as_str(),
156
- "set-content" | "add-content" | "out-file" | "new-item" | "remove-item"
157
- | "move-item" | "copy-item" | "rename-item" | "start-process" | "stop-process"
+ "set-content"
+ | "add-content"
158
+ | "out-file"
159
+ | "new-item"
160
+ | "remove-item"
161
+ | "move-item"
162
+ | "copy-item"
163
+ | "rename-item"
164
+ | "start-process"
165
+ | "stop-process"
166
) {
167
// Examples rejected here: "Write-Output (Set-Content foo6.txt 'abc')" and "Get-Content (New-Item bar.txt)".
168
return false;
0 commit comments