This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ls incorrectly shows system hidden files


> I just noticed that the "ls" command in cygwin shows Windows system hidden
> files.  Hidden files shouldn't be listed by the ls command!  Can this be
> changed?

Heh. Funny complaint. Probably the solution that's the most theoretically
faithful to the cygwin philosophy would be to somehow get ls to not list those
files unless you specified -a. The thing is, though, that this would probably
be a huge PITA to code for a feature that almost nobody wants anyway. So I
wouldn't hold my breath.

Here's the only kludge I could think of. Add this to your .bash_profile (or
/etc/profile if you want it to be global):

alias ls='cmd /c dir'

Or something like that, blah.

----------------------------------------------------------------------------
Kim Scarborough                                  http://www.unknown.nu/kim/
----------------------------------------------------------------------------
"For every complex problem there is a simple solution, and it's wrong."
                                                            - H. L. Mencken
----------------------------------------------------------------------------
Now listening to: Can - "Cutaway"
----------------------------------------------------------------------------




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]