NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/37666: xargs: Argument list too long

>Number:         37666
>Category:       bin
>Synopsis:       xargs: Argument list too long
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 02 14:05:00 +0000 2008
>Release:        NetBSD 4.0_STABLE
System: NetBSD 4.0_STABLE NetBSD 4.0_STABLE (GENERIC) #2: 
Tue Dec 25 17:42:38 EET 2007 i386
Architecture: i386
Machine: i386
The following command fails

   0 ~>find /home/cheusov/tmp/NCPI_rus_corpus/ru -name '*.dg' | xargs cat > 
   xargs: cat: Argument list too long
   126 ~>

Every filename is 52 character in size.
And there are much more than 5000 files in that directory.

At the same time the following works correctly.

   0 ru>pwd                                      
   0 ru>find . -name '*.dg' | xargs cat > content.txt
   0 ru>

Here filename size is ibviously shorter.



Home | Main Index | Thread Index | Old Index