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

Mike Frysinger vapier at gentoo.org
Wed Jan 11 00:40:04 CET 2012


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, we already have "run_command" and "run_command2", and they're both in 
common/main.c.  how about naming this "source_commands" and also putting it 
into common/main.c ?

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 ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120110/e15c4c09/attachment.pgp>


More information about the U-Boot mailing list