From 18051b7e8af7a9e71aac73cea9aa215ce50173c5 Mon Sep 17 00:00:00 2001 From: tg Date: Sat, 18 Feb 2017 01:27:24 +0000 Subject: [PATCH] less assignments --- funcs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/funcs.c b/funcs.c index e2f57b4..590ab7f 100644 --- a/funcs.c +++ b/funcs.c @@ -38,7 +38,7 @@ #endif #endif -__RCSID("$MirOS: src/bin/mksh/funcs.c,v 1.321 2017/02/17 22:28:25 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/funcs.c,v 1.322 2017/02/18 01:27:24 tg Exp $"); #if HAVE_KILLPG /* @@ -317,7 +317,6 @@ c_print(const char **wp) po.ws = ' '; po.ls = '\n'; po.nl = true; - po.exp = true; if (wp[0][0] == 'e') { /* "echo" builtin */ @@ -379,6 +378,8 @@ c_print(const char **wp) const char *opts = "AcelNnpRrsu,"; const char *emsg; + po.exp = true; + while ((c = ksh_getopt(wp, &builtin_opt, opts)) != -1) switch (c) { case 'A':