Unable to understand zsh error while running rake command

When I execute %rake college:create[demo], I get the following error:

zsh: no matches found: college:create[demo]

Does anyone have a solution for this?

when I execute rake -T, this is what I get when as one of the output lines:

rake college:create[config_name]            # create a college profile

So this is a valid command, but still zsh shows an error.

+5
source share
4 answers

Try:

rake college:create\[demo\]
+22
source

You can also use noglob

noglob rake college:create[demo]

or just an alias in your .zshrc

alias rake='noglob rake'
+10
source

zsh . college:create[demo] , :

college:created
college:createe
college:createm
college:createo

, zsh, :

  • [123], 1, 2 3.

You need to avoid the argument so zshthat you don’t think you are giving it a wildcard, for example:

rake 'college:create[demo]'

The manpage for zshexpn details all the extensions made on the command lines. Find Filename Generationfor generations of styles xyzzy[demo].

+7
source

If you are using rake through bundle execor from bin/dir, add this to your .zshrc file:

alias bin/rake='noglob rake'
# or 
alias rake="noglob bundled_rake
0
source

All Articles