Re: [U-Boot] [PATCH] cmd_source: introduce run_script()

2012-01-12 Thread Michael Walle
Am Donnerstag 12 Januar 2012, 22:51:48 schrieb Michael Walle: > Am Mittwoch 11 Januar 2012, 00:40:04 schrieb Mike Frysinger: > > although i wonder if it'd be possible to merge this into existing > > run_commands2() ... do we allow newlines now in variables that get run ? > > mh if the hush par

Re: [U-Boot] [PATCH] cmd_source: introduce run_script()

2012-01-12 Thread Michael Walle
Am Mittwoch 11 Januar 2012, 00:40:04 schrieb Mike Frysinger: > although i wonder if it'd be possible to merge this into existing > run_commands2() ... do we allow newlines now in variables that get run ? mh if the hush parser is enabled this seems to be true. eg. source() and run_commands2() use t

Re: [U-Boot] [PATCH] cmd_source: introduce run_script()

2012-01-11 Thread Michael Walle
On Wed, January 11, 2012 00:40, Mike Frysinger wrote: > On Tuesday 10 January 2012 18:04:19 Michael Walle wrote: >> --- a/common/cmd_source.c >> +++ b/common/cmd_source.c >> >> +/* >> + * Run a series of commands, separated by '\n'. >> + * Beware, the contents of script may be modified while it is

Re: [U-Boot] [PATCH] cmd_source: introduce run_script()

2012-01-10 Thread Mike Frysinger
On Tuesday 10 January 2012 18:04:19 Michael Walle wrote: > --- a/common/cmd_source.c > +++ b/common/cmd_source.c > > +/* > + * Run a series of commands, separated by '\n'. > + * Beware, the contents of script may be modified while it is parsed. > + */ > +int run_script(char *script) const also,

[U-Boot] [PATCH] cmd_source: introduce run_script()

2012-01-10 Thread Michael Walle
Move actual script execution into a new function run_script(), which then can be called from other modules. Signed-off-by: Michael Walle Cc: Wolfgang Denk --- common/cmd_source.c | 71 -- include/common.h|1 + 2 files changed, 41 inserti