ls incorrectly shows system hidden files

Kim Scarborough lists@jinx.unknown.nu
Wed Jul 31 17:35:00 GMT 2002


> 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/



More information about the Cygwin mailing list