From 1248a0a5215761d4fa93cced028adec39da42e80 Mon Sep 17 00:00:00 2001 From: tg Date: Thu, 19 Feb 2015 22:00:03 +0000 Subject: [PATCH] basically unbreak use of $*/$@ in here documents a bit funny: with NUL IFS, $* behaves like dash ('ab') and $@ like bash/ksh93 ('a b') with WS or NWS IFS, all shells behave alike though --- exec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exec.c b/exec.c index 0642917..a8dab5c 100644 --- a/exec.c +++ b/exec.c @@ -23,7 +23,7 @@ #include "sh.h" -__RCSID("$MirOS: src/bin/mksh/exec.c,v 1.144 2015/02/19 21:58:19 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/exec.c,v 1.145 2015/02/19 22:00:03 tg Exp $"); #ifndef MKSH_DEFAULT_EXECSHELL #define MKSH_DEFAULT_EXECSHELL "/bin/sh" @@ -1492,7 +1492,7 @@ hereinval(const char *content, int sub, char **resbuf, struct shf *shf) if (yylex(sub) != LWORD) internal_errorf("%s: %s", "herein", "yylex"); source = osource; - ccp = evalstr(yylval.cp, 0); + ccp = evalstr(yylval.cp, DOSCALAR); } if (resbuf == NULL)