-
Notifications
You must be signed in to change notification settings - Fork 237
Fix PowerShell path escaping #765
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
b737a89
4785078
3123832
4dbf2f8
08c8ae3
e07b5cd
2d6a37c
ce20e65
063b782
7fab6d8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
function Hello | ||
{ | ||
"Bye" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Write-Output "Windows won't let me put * or ? in the name of this file..." |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,7 +105,7 @@ public async Task DebuggerAcceptsScriptArgs(string[] args) | |
// it should not escape already escaped chars. | ||
ScriptFile debugWithParamsFile = | ||
this.workspace.GetFile( | ||
@"..\..\..\..\PowerShellEditorServices.Test.Shared\Debugging\Debug` With Params `[Test].ps1"); | ||
@"..\..\..\..\PowerShellEditorServices.Test.Shared\Debugging\Debug` W&ith Params `[Test].ps1"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What was the deal with the & char? It isn't a wildcard char. Ah, wait a tic. I see. On WinPS it's a reserved char and on PS Core it is used to create a (background) job. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, it's a "token separator", so it will break a bareword string |
||
|
||
await this.debugService.SetLineBreakpoints( | ||
debugWithParamsFile, | ||
|
Uh oh!
There was an error while loading. Please reload this page.