-
Notifications
You must be signed in to change notification settings - Fork 368
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
Escaped quotes in symbol parameter values lost or cause errors #1704
Comments
I can file it in a separate issue since it's a different OS, but there is a different issue for dotnet new repro-quotes-spaces --someparameter="something needing \"escaped quotes\" in it." Unexpected substitution:
|
Just confirmed the same errors and unexpected outputs on macOS running the same .NET Core and PowerShell Core versions. Editing the initial issue to include that. The issue seems totally different in Bash, though, as mentioned in the prior comment. |
@GangWang01 could you please check if it is fixed? It should be as we already moved to new parser. Thank you |
@vlada-shubina, @GangWang01
|
@patridge the fix is potentially available in .NET 7, unfortunately it won't be backported to .NET 6. |
@patridge @vlada-shubina With Command Prompt on Windows, Here are the details using different escape characters with/without space inside. Command prompt
PowerShell 7
|
Closing, this has been fixed in .NET 7. Correct syntax follows: Command prompt
PowerShell 7
|
When I try to pass quotation marks to a parameter from the command line, I either get an error or the produced content will not contain quotation marks.
Full details can be found in my sample repo notes, but here are some examples.
Results in this error:
If I remove the space within the quoted sub-string, there is no error, but the content it produces doesn't have any quotation marks either.
Results in this text missing the expected quotes:
Environment
Sample repro
Here is a repo containing a sample and my notes so far (Notes direct link):
https://github.com/patridge/repro-DotnetNewTemplateParameterQuotes
The text was updated successfully, but these errors were encountered: