From 6e10224f1ec4cb61df4982661bfb524cbafbd03b Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Thu, 31 Dec 2015 12:44:25 -0800 Subject: unposted: enable WARN_CREATE_GLOBAL for print -v --- Src/builtin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Src/builtin.c') diff --git a/Src/builtin.c b/Src/builtin.c index 128bc36b5..05907f1d3 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -4376,7 +4376,7 @@ bin_print(char *name, char **args, Options ops, int func) /* -v option -- store the arguments in the named parameter */ if (OPT_ISSET(ops,'v')) { queue_signals(); - assignsparam(OPT_ARG(ops, 'v'), sepjoin(args, NULL, 0), 0); + setsparam(OPT_ARG(ops, 'v'), sepjoin(args, NULL, 0)); unqueue_signals(); return 0; } @@ -4882,7 +4882,7 @@ bin_print(char *name, char **args, Options ops, int func) if (OPT_ISSET(ops,'z')) { zpushnode(bufstack, stringval); } else if (OPT_ISSET(ops,'v')) { - assignsparam(OPT_ARG(ops, 'v'), stringval, 0); + setsparam(OPT_ARG(ops, 'v'), stringval); } else { ent = prepnexthistent(); ent->node.nam = stringval; -- cgit v1.2.3