misc/157491: update ls/rm/mv/cp tools to be able to handle large
amount of files
Eitan Adler
lists at eitanadler.com
Wed Jun 1 12:00:34 UTC 2011
The following reply was made to PR misc/157491; it has been noted by GNATS.
From: Eitan Adler <lists at eitanadler.com>
To: bug-followup at freebsd.org, vermaden at interia.pl
Cc:
Subject: Re: misc/157491: update ls/rm/mv/cp tools to be able to handle large
amount of files
Date: Wed, 1 Jun 2011 11:59:36 +0000
The limit is not in these tools. It is a constant number, defined in
bytes, in the kernel. This is designed to keep the amount of memory
required to store these command line options bounded.
You could see the value with
$getconf ARG_MAX
262144
I suggest you use find + xargs which automatically will figure out the
correct number of arguments and run the command for you.
--
Eitan Adler
More information about the freebsd-bugs
mailing list