Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8658241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:42:58+00:00 2026-06-12T15:42:58+00:00

I have been using zsh globbing for commands such as: vim **/filename vim *.html.erb

  • 0

I have been using zsh globbing for commands such as:

 vim **/filename
 vim *.html.erb

and so on, but when I type in something like:

 find . -name *mobile*

I get the response:

 zsh: no matches found: *mobile*

Why?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T15:42:59+00:00Added an answer on June 12, 2026 at 3:42 pm
    find . -name *mobile* # does not work
    

    vs

    find . -name '*mobile*' # works
    

    The difference is due to the steps that the shell takes when it parses a line. Normally, the shell expands any wildcards it finds before it runs the command. However, the single quotes mark the argument as being a literal, which means that the shell does not perform wildcard expansion on that argument before running the command.

    To demonstrate the difference, suppose you are in a directory with the following files:

    $ tree
    ./
    mobile.1
    dir/
        mobile.2
    

    In the first case, without single quotes, zsh will process as follows:

    • expand the glob, rendering simply mobile.1 (because that is the only matching filename in the current directory
    • pass the result to find, hence:
    find . -name mobile.1
    

    So find will only look for files named literally mobile.1

    In the second form, with single quotes, the entire glob will be preserved and passed to find:

    find . -name *mobile*
    

    Which means that find will look for any filename containing the string "mobile".

    The important thing to note here is that both zsh and find support the same wildcard syntax; by using single quotes, you induce find to handle the wildcards in this case rather than zsh.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

have been using no DOCTYPE but rather simply starting with <html> as per HTML5
I have been using something like this: int main(int argc, char *argv[]) { #ifdef
I have been using TortoiseSVN for some time and I really like it. I
I have been using echo $.sprintf(%01\$.2f,$numvar); for my USD formatting, but I only copied
I have been using Pear W3C HTML Validator to validate websites in house. We
I have been using the same Ajax Combobox everywhere in my project but as
I have been using sonar on my local machine for a long time but
I have been using Tomcat for a while. But I have never get myself
I have been using NSUserDefaults for passing floats all around my apps. But they
I have been using Javascript but more in a procedural way not the object

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.