Skip to content
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

PowerShell stop-parsing token --% stops working since Azure CLI 2.40.0 #24114

Closed
jiasli opened this issue Oct 6, 2022 · 0 comments
Closed

PowerShell stop-parsing token --% stops working since Azure CLI 2.40.0 #24114

jiasli opened this issue Oct 6, 2022 · 0 comments
Labels
Azure CLI Team The command of the issue is owned by Azure CLI team Core CLI core infrastructure CXP Attention This issue is handled by CXP team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@jiasli
Copy link
Member

jiasli commented Oct 6, 2022

Describe the bug
Before Azure CLI 2.40.0, PowerShell stop-parsing token --% can be used to bypass PowerShell's parsing. However, it stops working since Azure CLI 2.40.0 because of entry script's migration to az.ps1 (#23514).

To Reproduce

> az.ps1 --debug --% version --query \"azure-cli\"
cli.knack.cli: Command arguments: ['--debug', '--%', 'version --query "azure-cli" ']

This is because --% only works for native executable, but not ps1 script.

@jiasli jiasli closed this as completed Oct 6, 2022
@yonzhan yonzhan added Azure CLI Team The command of the issue is owned by Azure CLI team Core CLI core infrastructure question The issue doesn't require a change to the product in order to be resolved. Most issues start as that CXP Attention This issue is handled by CXP team. labels Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure CLI Team The command of the issue is owned by Azure CLI team Core CLI core infrastructure CXP Attention This issue is handled by CXP team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

2 participants