help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] deallocation of brace expanded variable


From: Bob Proulx
Subject: Re: [Help-bash] deallocation of brace expanded variable
Date: Thu, 11 Sep 2014 14:58:18 -0600
User-agent: Mutt/1.5.23 (2014-03-12)

Sebastian Eiser wrote:
> I'm not sure if this is intended behaviour or not, but it seems that a
> brace expanded variable is not deallocated:
> 
> for i in {1..10000000}; do echo -n; done

This gets discussed every so often.  Please read this thread and here
is my comment about it.

  http://lists.gnu.org/archive/html/bug-bash/2011-11/msg00189.html

Plus:

  http://lists.gnu.org/archive/html/bug-bash/2008-05/msg00047.html
  http://lists.gnu.org/archive/html/bug-bash/2009-05/msg00006.html

Basically don't create an unreasonably large number of program arguments.
Instead do what Greg suggested and generate one argument at a time.

  http://lists.gnu.org/archive/html/bug-bash/2011-11/msg00185.html

Bob



reply via email to

[Prev in Thread] Current Thread [Next in Thread]