From: Wolfgang Denk Date: Fri, 16 Jul 2010 21:12:28 +0200 Subject: [U-Boot] [PATCH] common: add a grepenv command In-Reply-To: <20100716134252.b053e2dc.kim.phillips@freescale.com> References: <20100715221522.1dd4eecb.kim.phillips@freescale.com> <20100716092703.02D6D153A82@gemini.denx.de> <20100716134252.b053e2dc.kim.phillips@freescale.com> Message-ID: <20100716191228.334F1153A7F@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Kim, In message <20100716134252.b053e2dc.kim.phillips@freescale.com> you wrote: > > > I'm in the process of resturcturing the whole environment handling. > > The new implementation will use a hash table for internal storage, so > > this code would no longer apply then. > > it would still apply, in that the environment should still be greppable, > but, yes, if the internal structures are changed, this patch would need > updating, along the same lines as with printenv and friends. I don;t see how you would grep the entries in a hash table - except by walking through all entries, which works, but is slow. But then, the new code will print the variable alphabetically sorted, so looking up a setting will be much easier anyway :-) > technically this should be allowed in, because it was submitted first > and it's need is overdue IMHO (I have already gotten off-list thanks > for this patch). Subsequent patches need to honour valid patches > posted to the list first. Yes, you are right. Let's put this patch on hold for now; eventually we can have both this and the new env code. > Having said that, would you like to send me your hash table patches? I'm still working on fixes and cleanup. I intend to post the patches before the MW closes, though (and provide a branch to pull from). Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de No man knows what true happiness is until he gets married. By then, of course, its too late.