Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Empty $''



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);
 



Messages sorted by: Reverse Date, Date, Thread, Author