-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Stefan Menne on 11/16/2009 7:10 AM: > Hello, > > The Commands ls (and others) and mkdir interpret Wildcard in different > ways:
No, they don't interpret wildcards at all. Globbing is a function of the shell, performed prior to ls or mkdir invocation. > > -> ls fil*/te*/file The shell ends up executing: ls file/text/file so ls never saw the wildcard > > -> mkdir fi*/te*/directory fi*/te*/directory doesn't exist at the time of the shell globbing, so there is nothing to expand, so the shell ends up calling: mkdir "fi*/te*/directory" but since the parent directory fi* does not exist, mkdir must fail. This is not a bug, but a misunderstanding on your part about how shell globbing works. - -- Don't work too hard, make some time for fun as well! Eric Blake [email protected] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAksBXsQACgkQ84KuGfSFAYALygCfer9Sx+fgm4Goa0SuwhrBwlxJ G+8AoIAEfCHaS1QlbbOYFSGUDkteiiEc =coLJ -----END PGP SIGNATURE-----
