0
1

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 3 years have passed since last update.

zsh: no matches found:というエラー対応

Posted at

はじめに

環境構築時のエラーについてまとめます。

起きていること

以下のコマンドを実行時にエラーが発生。
***としていある部分は、会社名が含まれたファイル名のため隠しています。

terminal
docker-compose exec web /home/apps/.rbenv/shims/bundle exec rails ************[**************]
zsh: no matches found: ************[**************]

原因

どうやらコマンドにglobでされるメタ文字(*,[],?…)が含まれていると、
zshであるとファイル名と思って解析し「そんなファイルありません」とエラーを返してくれてみたいです。bashだと、大丈夫みたいです。

参考になった記事はこちら!!

対応方法

% vim ~/.zshrc 
# setopt nonomatchを記述
% source ~/.zshrc

nomatchによるエラーを抑制してくれるみたいです。

おわりに

まだ理解度は7割ですので、引き続き調査していきます!

0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?