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
>Originator:     cheusov%tut.by@localhost
>Release:        NetBSD 4.0_STABLE
>Organization:
>Environment:
System: NetBSD chen.chizhovka.net 4.0_STABLE NetBSD 4.0_STABLE (GENERIC) #2: 
Tue Dec 25 17:42:38 EET 2007 
cheusov%chen.chizhovka.net@localhost:/srv/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
The following command fails

   0 ~>find /home/cheusov/tmp/NCPI_rus_corpus/ru -name '*.dg' | xargs cat > 
content.txt     
   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                                      
   /home/cheusov/tmp/NCPI_rus_corpus/ru
   0 ru>find . -name '*.dg' | xargs cat > content.txt
   0 ru>

Here filename size is ibviously shorter.

>Fix:

Unknown



Home | Main Index | Thread Index | Old Index