google-gemini/cookbook

curl URLs should be quoted.

Closed this issue · 0 comments

Problem:
I attempted to run a curl command and got a "no matches found" error

Explanation:
This is because the shell that I ran this command from, zsh, explicitly raises an error when it cannot expand a wildcard.
In this case, it is attempting to expand the ? used in the query string ?key=$GOOGLE_API_KEY

AFAIK this only affects zsh users because other shells like bash will pass the unexpanded wildcard pattern instead of raising an error like zsh.
Example:
image