'rm' Can not delete files
CyberLeo Kitsana
cyberleo at cyberleo.net
Wed Feb 8 18:37:02 UTC 2012
On 02/08/2012 12:02 PM, David Brodbeck wrote:
> 2012/2/7 Ingo Hofmann <ingo.hofmann at 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 at CyberLeo.Net>
Furry Peace! - http://wwww.fur.com/peace/
More information about the freebsd-questions
mailing list