From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 15 12:25:41 2010 Received: (at submit) by debbugs.gnu.org; 15 Sep 2010 16:25:41 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ovunk-0003i7-Ik for submit@debbugs.gnu.org; Wed, 15 Sep 2010 12:25:41 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvtSz-0003A1-3t for submit@debbugs.gnu.org; Wed, 15 Sep 2010 11:00:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OvtV1-0001wL-Rk for submit@debbugs.gnu.org; Wed, 15 Sep 2010 11:02:26 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:45817) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvtV1-0001wF-PB for submit@debbugs.gnu.org; Wed, 15 Sep 2010 11:02:15 -0400 Received: from [140.186.70.92] (port=49089 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OvtUw-0002mb-Jr for bug-coreutils@gnu.org; Wed, 15 Sep 2010 11:02:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OvtUr-0001tx-Mk for bug-coreutils@gnu.org; Wed, 15 Sep 2010 11:02:10 -0400 Received: from mailgw10.se.ericsson.net ([193.180.251.61]:61510) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvtUr-0001tS-CA for bug-coreutils@gnu.org; Wed, 15 Sep 2010 11:02:05 -0400 X-AuditID: c1b4fb3d-b7cbeae00000772f-8b-4c90dfe900b2 Received: from esessmw0237.eemea.ericsson.se (Unknown_Domain [153.88.253.125]) by mailgw10.se.ericsson.net (Symantec Mail Security) with SMTP id C9.D2.30511.9EFD09C4; Wed, 15 Sep 2010 17:02:01 +0200 (CEST) Received: from ESESSCMS0361.eemea.ericsson.se ([169.254.1.36]) by esessmw0237.eemea.ericsson.se ([153.88.115.90]) with mapi; Wed, 15 Sep 2010 17:02:01 +0200 From: Elisabet Wahlgren To: "bug-coreutils@gnu.org" Date: Wed, 15 Sep 2010 17:02:00 +0200 Subject: ls, mv, etc on LINUX Thread-Topic: ls, mv, etc on LINUX Thread-Index: ActU5vKZSjvoT3NPQ1yaDJJ1blELDQ== Message-ID: <36C2619684AE9845BCDEB9D6AF2B92FC0258E421@ESESSCMS0361.eemea.ericsson.se> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_36C2619684AE9845BCDEB9D6AF2B92FC0258E421ESESSCMS0361eem_" MIME-Version: 1.0 X-Brightmail-Tracker: AAAAAA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -3.4 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 15 Sep 2010 12:25:38 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.7 (----) --_000_36C2619684AE9845BCDEB9D6AF2B92FC0258E421ESESSCMS0361eem_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Guys, Greatly surprised (and not very happy) that my attempts to list or move fil= es satisfying a file name pattern (like ls *.tgz for example) fail miserab= ly on my linux machine, when the number of files satisfying the pattern is = large. Error message example: "/bin/mv: Argument list too long". Is this a = bug or a feature, would you know? I used to work with a Unix version (Solaris) quite a number of years (decad= es) and cannot remember having seen this limitation before. Any tips? Regards, Elisabet Wahlgren --_000_36C2619684AE9845BCDEB9D6AF2B92FC0258E421ESESSCMS0361eem_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
 
Hi Guys,
 
Greatly surprised (and not very happy) that my attemp= ts to list or move files satisfying a file name pattern (like ls *.tgz for = example)  fail miserably on my linux machine, when the number of files= satisfying the pattern is large. Error message example: "/bin/mv: Argument list too long". Is this a bug= or a feature, would you know?
 
I used to work with a Unix version (Solaris) quite a = number of years (decades) and cannot remember having seen this limitation b= efore.
 
Any tips?
 
Regards,
Elisabet Wahlgren
 
 
 
--_000_36C2619684AE9845BCDEB9D6AF2B92FC0258E421ESESSCMS0361eem_-- From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 15 12:46:36 2010 Received: (at 7036-done) by debbugs.gnu.org; 15 Sep 2010 16:46:37 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ovv80-0003ts-9x for submit@debbugs.gnu.org; Wed, 15 Sep 2010 12:46:36 -0400 Received: from joseki.proulx.com ([216.17.153.58]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ovv7y-0003tn-6K for 7036-done@debbugs.gnu.org; Wed, 15 Sep 2010 12:46:35 -0400 Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id D481921361; Wed, 15 Sep 2010 10:48:40 -0600 (MDT) Received: by hysteria.proulx.com (Postfix, from userid 1000) id D15C12DCCC; Wed, 15 Sep 2010 10:48:30 -0600 (MDT) Date: Wed, 15 Sep 2010 10:48:30 -0600 From: Bob Proulx To: Elisabet Wahlgren Subject: Re: bug#7036: ls, mv, etc on LINUX Message-ID: <20100915164830.GA9917@hysteria.proulx.com> References: <36C2619684AE9845BCDEB9D6AF2B92FC0258E421@ESESSCMS0361.eemea.ericsson.se> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <36C2619684AE9845BCDEB9D6AF2B92FC0258E421@ESESSCMS0361.eemea.ericsson.se> User-Agent: Mutt/1.5.20 (2009-06-14) X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: 7036-done Cc: 7036-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.4 (--) Elisabet Wahlgren wrote: > Greatly surprised (and not very happy) that my attempts to list or > move files satisfying a file name pattern (like ls *.tgz for > example) fail miserably on my linux machine, when the number of > files satisfying the pattern is large. Error message example: > "/bin/mv: Argument list too long". Is this a bug or a feature, would > you know? This is a long standing kernel limitation. Because file glob expansion occurs by the shell before program invocation this doesn't have anything to do with any program. The shell is running out of space while trying to set up the command environment. See this reference for all of the details: http://www.gnu.org/software/coreutils/faq/#Argument-list-too-long > I used to work with a Unix version (Solaris) quite a number of years > (decades) and cannot remember having seen this limitation before. It has been around forever in traditional Unix kernels. Note that a recent change has enhanced the Linux kernel to avoid this limitation. Bob From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 15 12:48:26 2010 Received: (at 7036) by debbugs.gnu.org; 15 Sep 2010 16:48:26 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ovv9l-0003v1-MJ for submit@debbugs.gnu.org; Wed, 15 Sep 2010 12:48:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ovv9i-0003uv-LQ for 7036@debbugs.gnu.org; Wed, 15 Sep 2010 12:48:24 -0400 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o8FGodxA027633 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 15 Sep 2010 12:50:39 -0400 Received: from [10.3.113.81] (ovpn-113-81.phx2.redhat.com [10.3.113.81]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o8FGoc5I021078; Wed, 15 Sep 2010 12:50:38 -0400 Message-ID: <4C90F95E.4080602@redhat.com> Date: Wed, 15 Sep 2010 10:50:38 -0600 From: Eric Blake Organization: Red Hat User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100907 Fedora/3.1.3-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.3 MIME-Version: 1.0 To: Elisabet Wahlgren Subject: Re: bug#7036: ls, mv, etc on LINUX References: <36C2619684AE9845BCDEB9D6AF2B92FC0258E421@ESESSCMS0361.eemea.ericsson.se> In-Reply-To: <36C2619684AE9845BCDEB9D6AF2B92FC0258E421@ESESSCMS0361.eemea.ericsson.se> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 X-Spam-Score: -10.1 (----------) X-Debbugs-Envelope-To: 7036 Cc: 7036@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -10.1 (----------) On 09/15/2010 09:02 AM, Elisabet Wahlgren wrote: > > Hi Guys, > > Greatly surprised (and not very happy) that my attempts to list or move files satisfying a file name pattern (like ls *.tgz for example) fail miserably on my linux machine, when the number of files satisfying the pattern is large. Error message example: "/bin/mv: Argument list too long". Is this a bug or a feature, would you know? Feature of your OS, and a FAQ: http://www.gnu.org/software/coreutils/faq/#Argument-list-too-long > > I used to work with a Unix version (Solaris) quite a number of years (decades) and cannot remember having seen this limitation before. Solaris has the same problem - it's just that you never presented it with enough data to reach the limit. -- Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 16 06:55:33 2010 Received: (at 7036) by debbugs.gnu.org; 16 Sep 2010 10:55:33 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwC7p-0003af-4G for submit@debbugs.gnu.org; Thu, 16 Sep 2010 06:55:33 -0400 Received: from mailgw10.se.ericsson.net ([193.180.251.61]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwC7m-0003aa-1E for 7036@debbugs.gnu.org; Thu, 16 Sep 2010 06:55:31 -0400 X-AuditID: c1b4fb3d-b7cbeae00000772f-b7-4c91f82b627f Received: from esessmw0237.eemea.ericsson.se (Unknown_Domain [153.88.253.125]) by mailgw10.se.ericsson.net (Symantec Mail Security) with SMTP id FF.19.30511.B28F19C4; Thu, 16 Sep 2010 12:57:48 +0200 (CEST) Received: from ESESSCMS0361.eemea.ericsson.se ([169.254.1.36]) by esessmw0237.eemea.ericsson.se ([153.88.115.90]) with mapi; Thu, 16 Sep 2010 12:57:47 +0200 From: Elisabet Wahlgren To: Eric Blake Date: Thu, 16 Sep 2010 12:57:45 +0200 Subject: RE: bug#7036: ls, mv, etc on LINUX Thread-Topic: bug#7036: ls, mv, etc on LINUX Thread-Index: ActU9ifalCnpj2iRQgGVKBe87g9jVAAlksug Message-ID: <36C2619684AE9845BCDEB9D6AF2B92FC025BD673@ESESSCMS0361.eemea.ericsson.se> References: <36C2619684AE9845BCDEB9D6AF2B92FC0258E421@ESESSCMS0361.eemea.ericsson.se> <4C90F95E.4080602@redhat.com> In-Reply-To: <4C90F95E.4080602@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Brightmail-Tracker: AAAAAA== X-Spam-Score: -4.4 (----) X-Debbugs-Envelope-To: 7036 Cc: "7036@debbugs.gnu.org" <7036@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.5 (-----) Thank you very much for your prompt answer and very valuable info! I did tr= y to surf the web for info before asking you, but I did not find your excel= lent FAQ link though. My company's Linux has an ARG_MAX value of 128K, as compared to the (probab= le - I never had a reason to check it then) 2M limit for the Solaris OS we = used to work with - seems a number of the commercial Unix variants noticed = the advantage of a larger limit. The Solaris value seemed to be enough for = what I was doing then and would most probably be enough for what I am doing= now. Hopefully, our next Linux Service Pack might involve a recompiled ker= nel with an increased value, for simplicity and to avoid changing too much = in our build environment etc. I'll talk to our Linux team. Thanks again, Regards, Elisabet Wahlgren -----Original Message----- From: Eric Blake [mailto:eblake@redhat.com]=20 Sent: den 15 september 2010 18:51 To: Elisabet Wahlgren Cc: 7036@debbugs.gnu.org Subject: Re: bug#7036: ls, mv, etc on LINUX On 09/15/2010 09:02 AM, Elisabet Wahlgren wrote: > > Hi Guys, > > Greatly surprised (and not very happy) that my attempts to list or move f= iles satisfying a file name pattern (like ls *.tgz for example) fail miser= ably on my linux machine, when the number of files satisfying the pattern i= s large. Error message example: "/bin/mv: Argument list too long". Is this = a bug or a feature, would you know? Feature of your OS, and a FAQ: http://www.gnu.org/software/coreutils/faq/#Argument-list-too-long > > I used to work with a Unix version (Solaris) quite a number of years (dec= ades) and cannot remember having seen this limitation before. Solaris has the same problem - it's just that you never presented it with e= nough data to reach the limit. --=20 Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org From unknown Fri Aug 15 17:22:07 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 14 Oct 2010 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator