Skip to content

Conversation

@jeregon1
Copy link

Some characters such as ), & had to be escaped but they weren't.

Some characters such as ), & had to be escaped but they weren't.
Copilot AI review requested due to automatic review settings December 27, 2025 21:14
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a critical bug in the Windows batch file where special characters were not properly escaped within a PowerShell script generation block. The batch file uses a parenthesized redirection block to create a temporary PowerShell script, and within such blocks, special characters like ) and & must be escaped with ^ to prevent premature block termination and incorrect command parsing.

Key Changes:

  • Escaped all closing parentheses ) with ^) throughout the PowerShell script generation block (lines 697-774)
  • Escaped the ampersand & with ^& when invoking the external command (line 701)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant