Special filename in OS X; semantics of asterisk?

Posted by kbp on Server Fault See other posts from Server Fault or by kbp
Published on 2009-11-13T18:37:32Z Indexed on 2012/10/05 21:41 UTC
Read the original article Hit count: 120

Filed under:
|

So I'm using Mac OS X 10.5, and I have a file called

_Mail.grxml

that is being handled funny.

ls -l

will show the file, but

ls -l *

will not. It's just this one file; note

ls -l | wc -l

gives 43 (the number of files in the directory), but

ls -l * | wc -l

gives 42.

So the question is -- Are there filenames that OSX just doesn't play nicely with? Or are the semantics of the * on the command line different from what I expect?

(Note this is NOT the only file whose name begins with an underscore; the other files are picked up just fine by *).

© Server Fault or respective owner

Related posts about macosx

Related posts about asterisk