Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <265000-22002121221502035@M2W057.mail2web.com> X-Priority: 3 Reply-To: cygwin AT cygwin DOT com X-Originating-IP: 195.92.67.69 From: "elfyn-cygwin AT mail DOT exposure DOT org DOT uk" To: wpinegar AT healthtech DOT net, cygwin AT cygwin DOT com Subject: RE: ls.exe shows windows system hidden files Date: Mon, 2 Dec 2002 16:50:20 -0500 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 X-OriginalArrivalTime: 02 Dec 2002 21:50:20.0068 (UTC) FILETIME=[CEFD1640:01C29A4C] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id gB2LodE26286 Hi, Try to remember that cygwin is a unix emulation layer for windows that tries to emulate unix in as many respects as possible. To change the ls source to accomadate for something windows uses to hide files, sometimes unknown from its users, would not be unix like. But saying that if your requirement is to have such an ls facility, that you must have, you could of course edit the source files to add your `windows' style hiding of files. As you mentioned it is used from php so why not check whether or not skip files in your script. Elfyn elfyn AT exposure DOT org DOT uk Original Message: ----------------- From: Wendell Pinegar wpinegar AT healthtech DOT net Date: Mon, 2 Dec 2002 15:09:02 -0600 To: cygwin AT cygwin DOT com, maxb AT ukf DOT net, offby1 AT blarg DOT net 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. FYI the MKS toolkit is designed for windows and not a posix system, And thus will support these windows features. In order to do this in cygwin changes would have to be made to stat to detect these files. >It just seems odd that ls.exe shows files that would not be listed with >standard command line "dir". The dir command is built-into windows shells. Again follows the hiding rules. >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 >--show-system-files"). -----Original Message----- From: Max Bowsher [mailto:maxb AT ukf DOT net] Sent: Monday, December 02, 2002 11:29 AM To: Wendell Pinegar; cygwin AT cygwin DOT com Subject: Re: ls.exe shows windows system hidden files Wendell Pinegar 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 for? 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. Max. -- 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/ -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . -- 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/