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 To: cygwin AT cygwin DOT com X-Injected-Via-Gmane: http://gmane.org/ Path: not-for-mail From: Andrew DeFaria Subject: Re: problem with bash Date: Thu, 14 Nov 2002 10:58:53 -0800 Lines: 18 Message-ID: <3DD3F26D.8000609@Salira.com> References: <20021114103412 DOT A36130 AT reliant DOT immure DOT com> NNTP-Posting-Host: 206.184.204.2 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1037300303 15057 206.184.204.2 (14 Nov 2002 18:58:23 GMT) X-Complaints-To: usenet AT main DOT gmane DOT org NNTP-Posting-Date: Thu, 14 Nov 2002 18:58:23 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en, ru, zh Igor Pechtchanski wrote: > Well, if you really want something equivalent to 'ls *', you'd need to > do something like > > find . -maxdepth 1 \( -name .\* -o -print \) | xargs ls > > The "-maxdepth 1" is to not descend recursively into directories, and > the "-name .\*" is to avoid listing hidden files/directories (which > would not be matched by the '*' glob). The "-type f" is actually > wrong, as '*' will match directories as well. > > Also beware that ls may be an alias, and xargs will run the actual > executable in the path... Huh?!? Just type ls! You don't need anything else and certainly not something as complicated as what you propose. -- 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/