LoginSignup
23
10

More than 5 years have passed since last update.

zshで引数付きのrake taskを実行する

Posted at

最近やっとbashからzshに乗り換えたのですがいつものようにrake taskを実行しようとすると

bundle exec rake hoge:foo[bar]
zsh: no matches found: hoge:foo[bar]

こうなってエラーになってしまいました。
解決法は単純で

bundle exec rake hoge:foo\[bar\]

[をエスケープするか

bundle exec rake 'hoge:foo[bar]'

でシングルクォーテーションで囲む必要があるんですね。
bashだとそのまま実行できたので知りませんでした。

23
10
0

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
23
10