Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Apr 2001 08:47:33 +0100
From:      Brian Somers <brian@Awfulhak.org>
To:        "Rodney W. Grimes" <freebsd@gndrsh.dnsmgr.net>
Cc:        brian@Awfulhak.org (Brian Somers), bsd@bsdhome.com (Brian Dean), schweikh@schweikhardt.net (Jens Schweikhardt), freebsd-current@FreeBSD.ORG, brian@Awfulhak.org
Subject:   Re: cp -d dir patch for review (or 'xargs'?) 
Message-ID:  <200104230747.f3N7lYK02161@hak.lan.Awfulhak.org>
In-Reply-To: Message from "Rodney W. Grimes" <freebsd@gndrsh.dnsmgr.net>  of "Sun, 22 Apr 2001 22:21:08 PDT." <200104230521.WAA76392@gndrsh.dnsmgr.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
> No rain here, it is ARG_MAX - 2048:
>      -s size
>              Set the maximum number of bytes for the command line length pro-
>              vided to utility. The sum of the length of the utility name and
>              the arguments passed to utility (including NULL terminators) will
>              be less than or equal to this number.  The current default value
>              for size is ARG_MAX - 2048.
> 
> 2K would be a pretty big env, root default std is about 367 bytes.

Ok, I'll stop arguing.  I guess I have to agree that you can script 
around the problem if you're careful.

FWIW, the above is really ARG_MAX - 4k (the documentation is wrong - 
I recently updated xargs.1 in -current) and this seems to be *exactly* 
the right threshold.  Take a look at the commit message with that 
xargs.1 commit...

> -- 
> Rod Grimes - KD7CAX @ CN85sl - (RWG25)               rgrimes@gndrsh.dnsmgr.net

-- 
Brian <brian@Awfulhak.org>                        <brian@[uk.]FreeBSD.org>
      <http://www.Awfulhak.org>;                   <brian@[uk.]OpenBSD.org>
Don't _EVER_ lose your sense of humour !



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?200104230747.f3N7lYK02161>