delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/07/08/10:35:28

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
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 <kvinay AT denver DOT india DOT mentorg DOT com>, cygwin AT cygwin DOT com
From: Larry Hall <cygwin-lh AT cygwin DOT com>
Subject: Re: ls could not list all files
In-Reply-To: <Pine.LNX.4.10.10407082039220.23099-100000@denver.india.men torg.com>
References: <Pine DOT LNX DOT 4 DOT 10 DOT 10407082039220 DOT 23099-100000 AT denver DOT india DOT mentorg DOT com>
Mime-Version: 1.0

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019