[PR #8150] fix(clipboard): actually escape powershell commands #12637

Closed
opened 2026-02-16 18:17:32 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/8150

State: closed
Merged: No


continuation of #7157, hopefully this should be the last one

resolves #8166 hopefully

What does this PR do?

use powershell's auto-escape ability by wrapping strings in single inverted comma ' instead of double inverted comma "

How did you verify your code works?

like just copy it

Before:

 = (Invoke-Expression "Write-Host 'Hello'")

After:

$output = (Invoke-Expression "Write-Host 'Hello'")
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/8150 **State:** closed **Merged:** No --- continuation of #7157, hopefully this should be the last one resolves #8166 hopefully ### What does this PR do? use powershell's auto-escape ability by wrapping strings in single inverted comma `'` instead of double inverted comma `"` ### How did you verify your code works? like just copy it Before: <pre> = (Invoke-Expression "Write-Host 'Hello'") </pre> After: <pre> $output = (Invoke-Expression "Write-Host 'Hello'") </pre>
yindo added the pull-request label 2026-02-16 18:17:32 -05:00
yindo closed this issue 2026-02-16 18:17:32 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12637