From: Wolfgang Denk Date: Fri, 17 Dec 2010 21:51:22 +0100 Subject: [U-Boot] [RFC PATCH 2/2] env: re-add support for auto-completion In-Reply-To: <201012171535.08619.vapier@gentoo.org> References: <1291807565-4831-1-git-send-email-vapier@gentoo.org> <1291807565-4831-2-git-send-email-vapier@gentoo.org> <20101217201014.359B515192A@gemini.denx.de> <201012171535.08619.vapier@gentoo.org> Message-ID: <20101217205122.BBB5A15192A@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 Mike Frysinger, In message <201012171535.08619.vapier@gentoo.org> you wrote: > > > Why can we not collect the results and sort them like we do for "env > > print" ? > > hmm, i dont think the previous code did do any sorting. it just relied on the > results of the env code being sorted already. i also dont think there is any The old code did not sort the output of pirntenv either - but the now code does. > support in u-boot today for sorting ? so i'd basically have to import > qsort(), and i didnt think the size trade off was worth while. Guess how printenv sorts the entries? See lib/qsort.c 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 "I can call spirits from the vasty deep." "Why so can I, or so can any man; but will they come when you do call for them?" - Shakespeare, 1 King Henry IV, Act III, Scene I.