Subject: Empty $''
From: Bart Schaefer <[email-masked]>
To: [email-masked]
Date: Thu, 3 Mar 2016 15:36:47 -0800
List-Id: Zsh Workers List <zsh-workers.zsh.org>

On Mar 3,  3:34pm, Bart Schaefer wrote:
}
} $'...' is not a quoted expression, it's a substitution (at least as far
} as zsh is concerned).
} 
} This does appear to be out of step with other shells.

Comments on the below?

diff --git a/Src/subst.c b/Src/subst.c
index bb1dd89..efb62b8 100644
--- a/Src/subst.c
+++ b/Src/subst.c
@@ -146,7 +146,7 @@ stringsubstquote(char *strstart, char **pstrdpos)
     } else if (strdpos[len])
 	strret = dyncat(strsub, strdpos + len);
     else
-	strret = strsub;
+	strret = dyncat(strsub, nulstring);
 
     *pstrdpos = strret + (strdpos - strstart) + strlen(strsub);