
20 Jul
2010
20 Jul
'10
2:38 a.m.
On Sat, 17 Jul 2010 21:45:48 +0200 Wolfgang Denk wd@denx.de 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