Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Apr 2001 19:05:24 +0200 (CEST)
From:      Oliver Fromme <olli@secnetix.de>
To:        freebsd-current@FreeBSD.ORG
Subject:   Re: cp -d dir patch for review (or 'xargs'?)
Message-ID:  <200104241705.TAA94529@lurza.secnetix.de>
In-Reply-To: <200104232202.f3NM25607648@hak.lan.Awfulhak.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Brian Somers <brian@awfulhak.org> wrote:
 >> If I'm not mistaken, the size of the environment is already
 >> taken into account by the xargs utility (subtracted from
 >> ARG_MAX).  So this isn't an issue at all.
 > 
 > Unless xargs runs a command with lots of arguments and that command 
 > increases the environment size then tries to run another command with 
 > the same arguments - bang (E2BIG).

True, but that's certainly not xarg's fault (and
it cannot be fixed in the scope of xargs).  xargs
has no way to know if the command will enlarge its
environment, and by what amount.  In such a case
it's probably up to the script writer to chose a
sensible value for xargs -s <n>.

Regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

"All that we see or seem is just a dream within a dream" (E. A. Poe)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104241705.TAA94529>