From 6f93994a5aeb3a8290153ec159af35bbd96a6673 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 29 Feb 2012 09:57:40 +0000 Subject: 30299: "$*" was split with SHWORDSPLIT if IFS was empty or unset --- Src/subst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/subst.c') diff --git a/Src/subst.c b/Src/subst.c index b9229861b..04ef1a4fb 100644 --- a/Src/subst.c +++ b/Src/subst.c @@ -1649,7 +1649,7 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int pf_flags) * This is one of the things that decides whether multsub * will produce an array, but in an extremely indirect fashion. */ - int nojoin = (pf_flags & PREFORK_SHWORDSPLIT) ? !(ifs && *ifs) : 0; + int nojoin = (pf_flags & PREFORK_SHWORDSPLIT) ? !(ifs && *ifs) && !qt : 0; /* * != 0 means ${...}, otherwise $... What works without braces * is largely a historical artefact (everything works with braces, -- cgit 1.4.1