This is the mail archive of the
mailing list for the Cygwin project.
RE: ls.exe shows windows system hidden files
- From: Wendell Pinegar <wpinegar at healthtech dot net>
- To: cygwin at cygwin dot com
- Cc: 'Max Bowsher' <maxb at ukf dot net>, 'Eric Hanchrow' <offby1 at blarg dot net>
- Date: Mon, 2 Dec 2002 15:09:02 -0600
- Subject: RE: ls.exe shows windows system hidden files
In our instance the reason this an issue is that we call the ls.exe utility
from PHP web code and have found that Windows XP is creating system hidden
files in some of our subdirectories (usually the XP auto-created thumbnail
databases). We have also found other ls.exe implementations that do
properly ignore hidden files. The MKS Toolkit for instance does properly
ignore these file types.
It just seems odd that ls.exe shows files that would not be listed with
standard command line "dir".
I agree that the proper way to implement this in cygwin would be to hide
system hidden files by default and have a switch to allow ls.exe to show
these files if requested (like "ls --show-hidden-files" and "ls
From: Max Bowsher [mailto:email@example.com]
Sent: Monday, December 02, 2002 11:29 AM
To: Wendell Pinegar; firstname.lastname@example.org
Subject: Re: ls.exe shows windows system hidden files
Wendell Pinegar <email@example.com> wrote:
> There seems to be a long running defect in the implementation of
> ls.exe. It shows windows system hidden files - which it shouldn't do
> by default. On Unix systems files are hidden by placing a period in
> front of the filename (ie, .profile), but in the windows world files
> are not routinely hidden this way but are more commonly hidden by
> setting the hidden attribute on the file.
> Shouldn't ls.exe honor the file system attribute and not show the
> hidden windows files?
It it really a big deal? Worth patching fileutils to make special allowance
There is no unixy analogue, so Cygwin can't help here.
Personally, I don't see the point of patching fileutils to do this - but
that's just an opinion.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html