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

zsh: no matches found #433

Closed
rajbeniwal opened this issue Jun 15, 2011 · 32 comments
Closed

zsh: no matches found #433

rajbeniwal opened this issue Jun 15, 2011 · 32 comments

Comments

@rajbeniwal
Copy link

I got this message every time i ran my rake task.

zsh: no matches found: live:debug:cucumber:feature[features_file]

works fine in bash.

Any idea?

@nlemke
Copy link

nlemke commented Jul 24, 2011

I have the same issue when I use

rake new_post["whatever"]

on the octopress framework!
http://octopress.org/

@tyok
Copy link

tyok commented Jul 28, 2011

Add alias rake='noglob rake' in your .zshrc. I found that out from here, because Google is my best friend.

@nlemke
Copy link

nlemke commented Jul 28, 2011

thank you! it works :/

@rajbeniwal
Copy link
Author

Thanx it works :-)

@juanpabloaj
Copy link

thanks

@massat
Copy link

massat commented Mar 23, 2012

thanx!!!

@sardaukar
Copy link

thanks!

@draffauf
Copy link

I was bitten by this one too. It pops back up when I try to run a rake task via foreman. For example, it happens on something like this:

foreman run -e .env, .env.development rake math:add[2,2,"easy"]

@allaire
Copy link

allaire commented Mar 29, 2013

Use alias rake="noglob bundled_rake" if you're like me and are using the bundler plugin!

thanks

@RobotGetsBored
Copy link

I usually alias my rake command to use bundle exec, so I had to do: alias rake="noglob bundle exec rake".

@alexbeletsky
Copy link

@tyok thanks a lot for that tip, helped me!

@borysboyko
Copy link

@tyok Thank you, saved me some trouble just now! 👍

@trev
Copy link

trev commented Jul 22, 2013

👍

@kimohashem
Copy link

you can use

rake name_space:task_name[param]

@attilakreiner
Copy link

👍

@Catorpilor
Copy link

great thx

@mcornella
Copy link
Member

This can be closed since a solution was found. Also, if you want you can add the plugin 'rake', which has these aliases, and it will be updated over time, instead of your own aliases in .zshrc.
CLOSABLE

@robbyrussell
Copy link
Member

Closing per the advice of #2568.

@chrishough
Copy link

Perfect fix @allaire :: thank you 👍

@acrogenesis
Copy link

I get this error when running
heroku addons:add deployhooks:http --url=https://munett.slack.com/services/hooks/heroku?token=some-token it works ok on bash

@sadfuzzy
Copy link

sadfuzzy commented Apr 1, 2015

thanks!

@kelabang
Copy link

wow, thats working.. thanks

@kanavmalhotra
Copy link

on executing below command:
nfs share -o anon=root,sec=sys,rw=,ro=@172.17.111.63 p-C163616-cli/f-C163616-cli
I get the following error:
zsh:1: no matches found: anon=root,sec=sys,rw=
,ro=@
pls help?

@mcornella
Copy link
Member

@kanavmalhotra quote the arguments so that @ is not interpreted as a globbing character, which are used to pattern-match files.

nfs share -o "anon=root,sec=sys,rw=,ro=@172.17.111.63" p-C163616-cli/f-C163616-cli

@kajatiger
Copy link

When I run
bundle exec rake plugin:spec["discourse-sync-*"]
I get
zsh: no matches found: plugin:spec[discourse-sync-*]
although I added
alias rake="noglob bundle exec rake"

@jpcmf
Copy link

jpcmf commented Feb 7, 2018

I love zsh, but im getting some ridiculous error and i don't know where and how fix it
When I run ➜ ~ sudo apt-get remove --purge *mysql\*
zsh return zsh: no matches found: *mysql*

@mcornella
Copy link
Member

@jpcmf quote the asterisks or zsh will try to expand the argument to files whose name contains mysql. Any parameter that contains *, ? or other globbing chars have to be quoted.

@rodnertj
Copy link

rodnertj commented Oct 31, 2018

A little late, this worked for me, add this guy in the .zshrc:
unsetopt nomatch

@schinery
Copy link

Even later... you can also wrap the rake task call in single quotes and run using a regular rake call, like so:

rake 'my:task[var1,var2]'

The downside to this is that it will treat all your passed variables as strings.

@payolemo
Copy link

@schinery This worked perfectly for me, thanks a lot!

@xentatt
Copy link

xentatt commented Feb 17, 2020

@schinery yep, this also worked for me, thanks!

@mcornella
Copy link
Member

If you need to pass in variables, use double quotes ("). Locking the issue since it's been resolved for a while.

@ohmyzsh ohmyzsh locked and limited conversation to collaborators Feb 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests