zsh: no matches found

在zsh中敲如下命令,可能会得到一个报错.

find . -name *.html

《zsh: no matches found》
这是因为zsh 会将这个*号自己解析,而不会传给find 命令,解决办法也很简单,再.zshrc中增加下面的setopt no_nomatch配置选项就可以了.

source .zshrc

重新尝试,应该就不会报错了.

点赞
  1. Greetings from Florida! I'm bored to tears
    at work so I decided to check out your blog on my iphone
    during lunch break. I really like the knowledge you provide here and can't wait to take a look
    when I get home. I'm surprised at how fast your
    blog loaded on my mobile .. I'm not even using WIFI, just 3G ..

    Anyways, good blog!

Leave a Reply

Your email address will not be published.