From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9901 invoked by alias); 19 Dec 2018 05:00:43 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 127659 invoked by uid 89); 19 Dec 2018 05:00:26 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=H*R:D*ca, brian, advised, documents X-HELO: smtp-out-no.shaw.ca Received: from smtp-out-no.shaw.ca (HELO smtp-out-no.shaw.ca) (64.59.134.9) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 19 Dec 2018 05:00:23 +0000 Received: from [192.168.1.114] ([24.64.172.44]) by shaw.ca with ESMTP id ZTxugbO1tMRX3ZTxvgCv5U; Tue, 18 Dec 2018 22:00:16 -0700 Reply-To: Brian.Inglis@SystematicSw.ab.ca Subject: Re: Exclude System entries with "ls" or "find" To: cygwin@cygwin.com References: <5c184377.1c69fb81.7df8f.9525@mx.google.com> <20181218081347.GD28727@calimero.vinschen.de> From: Brian Inglis Openpgp: preference=signencrypt Message-ID: <7831498f-3c06-5810-354e-87c452d3a0e7@SystematicSw.ab.ca> Date: Wed, 19 Dec 2018 10:06:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.3 MIME-Version: 1.0 In-Reply-To: <20181218081347.GD28727@calimero.vinschen.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-12/txt/msg00171.txt.bz2 On 2018-12-18 01:13, Corinna Vinschen wrote: > On Dec 17 16:46, Steven Penny wrote: >> Compare Cygwin: >> $ ls -1 -N /cygdrive/c >> $Recycle.Bin >> cygwin64 >> Documents and Settings >> pagefile.sys >> PerfLogs >> Program Files >> Program Files (x86) >> ProgramData >> Recovery >> System Volume Information >> Users >> Windows >> With Command Prompt: >> > dir /A:-S C: >> 2018-12-08 10:14 AM cygwin64 >> 2009-07-13 09:20 PM PerfLogs >> 2018-12-15 06:05 PM Program Files >> 2018-12-15 05:21 PM Program Files (x86) >> 2018-10-31 06:07 PM ProgramData >> 2018-11-18 01:10 AM Users >> 2018-11-09 08:18 AM Windows >> as can be seen, Command Prompt has a way to exclude System items. Does Cygwin >> have some way to do this, perhaps with "ls" or "find"? > You're asking POSIX tools to recognize DOS attributes... Could perhaps be supported as an env option CYGWIN=hidefileswithattributes:[SH]... with a possibility of overriding that and seeing the files (as with . and ..) when ls -a is specified, if SWTDI? Meanwhile CyNWin (no more than CyNUX). -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple