delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
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 <ADeFaria AT Salira DOT com> |
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> <Pine DOT GSO DOT 4 DOT 44 DOT 0211141221480 DOT 4275-100000 AT slinky DOT cs DOT nyu DOT edu> |
NNTP-Posting-Host: | 206.184.204.2 |
Mime-Version: | 1.0 |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |