美文网首页
zsh环境下find zsh:no matches found

zsh环境下find zsh:no matches found

作者: Kandy | 来源:发表于2018-08-21 15:28 被阅读0次

在 zsh 下使用 find 命令查找指定目录下所有头文件时出现问题:
no matches found: *.sh
具体原因:
因为zsh缺省情况下始终自己解释这个 *.h,而不会传递给 find 来解释。
解决办法:
~/.zshrc中加入:setopt no_nomatch, 然后进行source .zshrc命令

image.png

相关文章

网友评论

      本文标题:zsh环境下find zsh:no matches found

      本文链接:https://www.haomeiwen.com/subject/pekjiftx.html