-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
List format prints extra newlines/whitespace; behaves oddly with --query. #134
Comments
For now, this is by-design, I think. The default format is list, which by default apply a line break after each entity |
It appears, the query doesn't really work very with the "list" format, particularly when you use it to reduce the output and pipe to the next command. IMO, default to json makes more sense |
Also, the "list" format will normalize the field name to be Pascal style, say from 'name' to 'Name', so you can't use it for projection. |
I checked the status on this today. Running
It seems this issue is fixed. |
Like --output tsv, the default list format needs to suppress extraneous newlines. If you use:
$> az vm list-all --query "[].name"
You will see
[vm]
[vm]
[vm]
$>
The output should be:
$> az vm list-all --query "[].name"
[vm]
[vm]
[vm]
$>
The text was updated successfully, but these errors were encountered: