-
Notifications
You must be signed in to change notification settings - Fork 44
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
Unable to recognize multiline command #49
Comments
Any updates on this issue? Multiline statements still do not seem to work. |
It doesn't work when running the command in the background with the results shown in a side-by-side editor. It does work when you put a |
The line continuation character for PowerShell is `, not \. I missed you are using PowerShell. |
@mataralhawiti Are you using PowerShell or some Unix shell? Note that PowerShell uses ` (backtick) at the end of each but the last line. Unix shells use |
I'm using the vs code (run line in terminal ) - windows machine here's my code :
The error :
|
If you are using PowerShell in the terminal you need to replace the backslashes with backticks. If you are using CMD you need to replace the backslashes with carets (^). The different shells have different line continuation characters. |
thanks it works now |
Hi, I have the following command that is not working in Powershell 7.0.3 (Windows10, Visual Studio Code terminal).
I get the following error: |
Same for me: the ` does not work with PowerShell 7.3.0, but works with previous versions. |
I am trying to run this below command using VS code but it doesnt recognize muti-line parameter and giving below error saying following arguments are required. However, arguments are passed
How to overcome this? Not sure if this is a bug or something i am missing. Couldn't find any solution after searching so many ways in internet and hence creating this issue. Thanks for helping.
{
"stderr": "ERROR: az storage account create: error: the following arguments are required: --resource-group/-g, --name/-n\r\nusage: az storage account create [-h] [--verbose] [--debug]\r\n [--output {json,jsonc,table,tsv,yaml,none}]\r\n [--query JMESPATH] --resource-group\r\n RESOURCE_GROUP_NAME --name ACCOUNT_NAME\r\n [--sku {Standard_LRS,Standard_GRS,Standard_RAGRS,Standard_ZRS,Premium_LRS,Premium_ZRS}]\r\n [--location LOCATION]\r\n [--kind {Storage,StorageV2,BlobStorage,FileStorage,BlockBlobStorage}]\r\n [--tags [TAGS [TAGS ...]]]\r\n [--custom-domain CUSTOM_DOMAIN]\r\n [--encryption-services {blob,file,table,queue} [{blob,file,table,queue} ...]]\r\n [--access-tier {Hot,Cool}]\r\n [--https-only [{true,false}]]\r\n [--bypass {None,Logging,Metrics,AzureServices} [{None,Logging,Metrics,AzureServices} ...]]\r\n [--default-action {Allow,Deny}]\r\n [--assign-identity]\r\n [--subscription _SUBSCRIPTION]\r\n",
"stdout": ""
}
az storage account create
--name storagequickstart
--resource-group storage-quickstart-resource-group
--location westus
--sku Standard_LRS
--kind StorageV2
The text was updated successfully, but these errors were encountered: