Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oil g migrationコマンドでzshだとエラーになる #2

Closed
Hitoshi-SHIMIZU opened this issue Sep 11, 2012 · 2 comments
Closed

Comments

@Hitoshi-SHIMIZU
Copy link

初めまして。清水と申します。

現在貴書でFuelPHPを勉強中ですが、1点気がついたので報告いたします。

zsh環境で以下のコマンドを実行するとエラーが発生しました。

% oil g migration create_form name:string[50] email:string[100] comment:string[400] ip_address:string[39] user_agent:string[512] created_at:int updated_at:int

zsh: no matches found: name:string[50]

下記のようにダブルクォテーションでくくると正常に実行されました。

% oil g migration create_form "name:string[50]" "email:string[100]" "comment:string[400]" "ip_address:string[39]" "user_agent:string[512]" "created_at:int" "updated_at:int"

@kenjis
Copy link
Owner

kenjis commented Sep 12, 2012

zsh では [ ] はエスケープしないといけないということですね。

\[50\] のようにエスケープしても OK です。

@Hitoshi-SHIMIZU
Copy link
Author

はい。その通りです。
bashとzshでのこの違いについては初めて知りました。
(他にも細かい違いはありますが・・・)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants