58
35

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

rakeでzsh: no matches found

Last updated at Posted at 2014-09-04

#現象
zshを使いだしたんですけどね、octpressでブログ書こうと思って、

zsh
$ rake new_post['post title']

って打ったら

zsh
zsh: no matches found: new_post[post title]

って怒られるんですよ。なんなんですか。

#原因

どうやら、*とか?とか[とか]を使うと、グロブ展開とかいうのが行われるらしいんですよ。
(ワイルドカード的なもの)

#解決方法
で、それをさせないためには

.zshrc
setopt nonomatch

て書けばいいみたいです。

#参考
zsh: no matches found について

58
35
6

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
58
35

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?