This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: ls could not list all files
- From: Larry Hall <cygwin-lh at cygwin dot com>
- To: Vinay Kumar <kvinay at denver dot india dot mentorg dot com>, cygwin at cygwin dot com
- Date: Thu, 08 Jul 2004 10:27:43 -0400
- Subject: Re: ls could not list all files
- References: <Pine.LNX.4.10.10407082039220.23099-100000@denver.india.mentorg.com>
- Reply-to: Cygwin List <cygwin at cygwin dot com>
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/