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 8405711
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:54:26+00:00 2026-06-09T22:54:26+00:00

I am planning on filing a bug on coreutils for this, as this behavior

  • 0

I am planning on filing a bug on coreutils for this, as this behavior is unexpected, and there isn’t any practical use for it in the real world… Although it did make me chuckle at first, as I never even knew one could create files with wildcard in their filename. How practical is a filename with a wildcard in it? Who even uses such a feature?

I recently ran a bash command similar to this:

ln -s ../../avatars/* ./

Unfortunately, I did not add the correct amount of “../”, so rather than providing me with an informative error, it merely creates a link to a “*” file which does not exist. I would expect this to do that:

ln -s "../../avatars/*" ./

As this is the proper way to address such a filename.

Before a submit a bug on coreutils, I would like the opinion of others. Is there any practical use for this behavior, or should ln provide a meaningful error message?

And yes, I know one can just link to the entire directory, rather than each file within, but I do not wish newly created files to be replicated to the old location. There are only a few files in there that are being linked right now.

Some might even say that using a wildcard in symlinking is bad practice. However, I know the contents of the directory exactly, and this is much quicker than manually doing each file manually.

  • 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-09T22:54:27+00:00Added an answer on June 9, 2026 at 10:54 pm

    This isn’t a bug.

    In the shell, if you use a wildcard pattern that doesn’t match anything, then the pattern isn’t substituted. For example, if you do this:

    echo *.c
    

    If you have no .c files in the current directory, it will just print “*.c”. If there are .c files in the current directory, then *.c will be replaced with that list.

    For many commands, if you specify files that don’t exist it is an error, and you get a message that seems to make sense, like “cannot access *.c”. But for ln -s, since it is a symbolic link, the actual file doesn’t have to exist, and it goes ahead and makes the link.

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

Sidebar

Related Questions

Am planning to use cookies to communicate between two browser windows. Am wondering if
im planning to use java/jsp for web application installed on virtual web hosting space
I'm planning to use jquery frequently in my web pages. If my knowledge is
Planning to develop a LAMP web application. What general strategies can I use to
Was planning to use Service Routing (on WCF/REST) to do some common tasks before
I am planning to use jQuery Autocomplete (Not UI Autocomplete) plugin to fetch data
I`m planning to use the titles in a PSMultiValueSpecifier from settings.bundle in a pickerview.
Planning of using t4 template in a production environment. I have not used this
Im planning to use the Entities generated by the EF (POCO) in sending data
Im planning to allow people to create premium accounts on a site. There is

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.