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 Reply-To: Cygwin List Message-Id: <6.1.0.6.0.20040708102609.033e69f0@pop.prospeed.net> X-Sender: Date: Thu, 08 Jul 2004 10:27:43 -0400 To: Vinay Kumar , cygwin AT cygwin DOT com From: Larry Hall Subject: Re: ls could not list all files In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 04:50 PM 7/8/2004, you wrote: >Dear all, > I am facing strange problem. I have a directory test1 in which there >are number of files. I am running following command and see some problem >here. > >$ ls test1/* | wc > 2745 2745 32724 > >So total number of charcter if all filename is written on command line is >32724. Now I create another file. > >$ touch test1/a >$ ls test1/* >bash: /bin/ls: Invalid argument > >ls does not work in this case. Is there any limitation on total number of >charcters in command line? Yes. There always is. And you just hit it. >How could we change it to higher limit? 'man xargs' -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/