From owner-freebsd-questions@FreeBSD.ORG Wed Feb 8 18:37:02 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9AAC7106566B for ; Wed, 8 Feb 2012 18:37:02 +0000 (UTC) (envelope-from cyberleo@cyberleo.net) Received: from paka.cyberleo.net (paka.cyberleo.net [66.219.31.21]) by mx1.freebsd.org (Postfix) with ESMTP id 7688C8FC1E for ; Wed, 8 Feb 2012 18:37:02 +0000 (UTC) Received: from [172.16.44.4] (den.cyberleo.net [66.253.36.39]) by paka.cyberleo.net (Postfix) with ESMTPSA id 72ACA28405; Wed, 8 Feb 2012 13:37:01 -0500 (EST) Message-ID: <4F32C0CC.2070106@cyberleo.net> Date: Wed, 08 Feb 2012 12:37:00 -0600 From: CyberLeo Kitsana User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20120204 Thunderbird/9.0 MIME-Version: 1.0 To: David Brodbeck References: <1237723287.20120207235924@yandex.ru> <4F31A15C.3050506@gmail.com> <3DFDF5C0-2D39-4A88-B3B5-7D236A7FC4DA@dont-panic.org> In-Reply-To: X-Enigmail-Version: 1.3.4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: 'rm' Can not delete files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Feb 2012 18:37:02 -0000 On 02/08/2012 12:02 PM, David Brodbeck wrote: > 2012/2/7 Ingo Hofmann : >> What helps me sometimes is wrapping it up: >> >> for i in *; do rm $i; done > > Won't that just expand the * and result in the same problem? It seems > like you've just moved the problem from the rm statement to the for > statement. This error arises during exec(3) when the length of the program arguments exceeds a certain size. Since 'for' is a shell builtin, there is no such practical limitation thereupon. See the ERRORS section in execve(2), specifically [E2BIG], for more details. -- Fuzzy love, -CyberLeo Technical Administrator CyberLeo.Net Webhosting http://www.CyberLeo.Net Furry Peace! - http://wwww.fur.com/peace/