zsh: no matches found when curl

This seems to be an issue with zsh solved here.

There are several ways to solve this:

  1. You can escape the question mark ? in the url by quoting the url as explained by @huzaifa-saifuddin to avoid zsh treating it as a wildcard character.
  2. As explained here, you can create an alias for curl: alias curl='noglob curl'
  3. As explained here, you can disable to nomatch handling by adding the following to your ~/.zshrcunsetopt nomatch

Source: node.js – zsh: no matches found when $ curl -s -X localhost:60702/api/bundle?name=lightreading | j q ‘.’ – Stack Overflow

zsh: no matches found when curl was last modified: June 15th, 2023 by Jovan Stosic

Leave a Reply