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
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
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
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,
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
5 matches
Mail list logo