Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Nov 2000 14:31:48 -0800
From:      Alfred Perlstein <bright@wintelcom.net>
To:        Sebastiaan van Erk <sebster@sebster.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: argument list too long
Message-ID:  <20001116143148.R830@fw.wintelcom.net>
In-Reply-To: <20001116230834.A59437@sebster.com>; from sebster@sebster.com on Thu, Nov 16, 2000 at 11:08:34PM %2B0100
References:  <20001116091607.A97857@sebster.com> <00111621362707.00522@shalimar.net.au> <20001116122313.A69018@sebster.com> <00111700205500.61931@shalimar.net.au> <20001116145641.A22842@sebster.com> <20001116105654.G830@fw.wintelcom.net> <20001116230834.A59437@sebster.com>

next in thread | previous in thread | raw e-mail | index | archive | help
* Sebastiaan van Erk <sebster@sebster.com> [001116 14:08] wrote:
> Alfred Perlstein wrote:
> 
> > Can you please suggest a reasonable limit to the argument list?
> 
> I cannot, because as my previous mails clearly indicated, any limit is in
> my opinion not reasonable.
>  
> > Would a gigabyte work for you?
> > maybe.
> 
> See above.
> 
> > Will that cover all mega-long arg lists?
> > no.
> 
> Indeed. Exactly right. It won't!
> 
> > Solution:
> > use xargs.
> 
> Nope. Again, this is not a solution, it's a workaround. Solution: infinite
> lists. They have them in all major programming languages. At least, they're
> as big as you need them to be, if you have enough hardware. :-)

When was the last time you worked on a machine with inifinite
resources?

This is bogus, there has to be a limit, if that's 100bytes, 100k,
100megs or 100gigs.  If you can't cope with a limit and batch the
commands then your program/script is broken.

Use the tools that are available, yes it's a workaround, but it's
necessary if you expect your tools to work on machines without
inifinite resources.

-- 
-Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org]
"I have the heart of a child; I keep it in a jar on my desk."


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




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