From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kim Phillips Date: Mon, 19 Jul 2010 19:38:25 -0500 Subject: [U-Boot] [PATCH 5/5] New implementation for internal handling of environment variables. In-Reply-To: <1279395948-25864-6-git-send-email-wd@denx.de> References: <1279395948-25864-1-git-send-email-wd@denx.de> <1279395948-25864-6-git-send-email-wd@denx.de> Message-ID: <20100719193825.120ebf29.kim.phillips@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, 17 Jul 2010 21:45:48 +0200 Wolfgang Denk wrote: > - It would be nice if we could add wildcard support for environment > variables; this is needed for variable name auto-completion, > but it would also be nice to be able to say "printenv ip*" or > "printenv *addr*" you were right - a grepenv/findenv/'env search' substring implementation on top of this looks to be at least as expensive as a full export operation :/ > int var_complete(int argc, char * const argv[], char last_char, int maxv, char *cmdv[]) > { > +#if 0 /* need to reimplement */ ouch - this is u-boot's most useful feature :) It would be good to know boot time overhead the initial import function makes, esp. in terms of number of boot-time accesses to the environment... Kim