Sangeetha A
Sangeetha A

Reputation: 33

Why do arguments in single-quotes not work as expected for gcloud on Windows?

While using gcloud flags like filter and format on Windows, passing in single-quoted arguments doesn't yield the expected result.

For example, running gcloud compute instances list --filter='status=TERMINATED' returns an empty list, even though there are terminated instances present.

Upvotes: 0

Views: 309

Answers (1)

Sangeetha A
Sangeetha A

Reputation: 33

The reason that single-quoted arguments don't produce the expected result is because cmd.exe doesn't use single quotes for this purpose.

Fix: Use double quotes.

Example: gcloud compute instances list --filter="status=TERMINATED"

Upvotes: 1

Related Questions