Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 08 Feb 2012 12:37:00 -0600
From:      CyberLeo Kitsana <cyberleo@cyberleo.net>
To:        David Brodbeck <gull@gull.us>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: 'rm' Can not delete files
Message-ID:  <4F32C0CC.2070106@cyberleo.net>
In-Reply-To: <CAHhngE3F7PYNuOfKk1bogzpXw1pjBzhtB_6q-1gqR7=OPSh_3Q@mail.gmail.com>
References:  <1237723287.20120207235924@yandex.ru> <4F31A15C.3050506@gmail.com> <3DFDF5C0-2D39-4A88-B3B5-7D236A7FC4DA@dont-panic.org> <CAHhngE3F7PYNuOfKk1bogzpXw1pjBzhtB_6q-1gqR7=OPSh_3Q@mail.gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On 02/08/2012 12:02 PM, David Brodbeck wrote:
> 2012/2/7 Ingo Hofmann <ingo.hofmann@dont-panic.org>:
>> 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
<CyberLeo@CyberLeo.Net>

Furry Peace! - http://wwww.fur.com/peace/



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?4F32C0CC.2070106>