about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorBart Schaefer <schaefer@zsh.org>2023-11-23 13:23:55 -0800
committerBart Schaefer <schaefer@zsh.org>2023-11-23 13:23:55 -0800
commitfbec213cc5ab0d0316c98bd9ddb883bae3bbdbc5 (patch)
treee6ea125a6b117e989b7b990b9f8d96ad2b2013b5 /Src
parent7a84713bb7a1527d4ef9bfa8c745d1bfa7da9d59 (diff)
downloadzsh-fbec213cc5ab0d0316c98bd9ddb883bae3bbdbc5.tar.gz
zsh-fbec213cc5ab0d0316c98bd9ddb883bae3bbdbc5.tar.xz
zsh-fbec213cc5ab0d0316c98bd9ddb883bae3bbdbc5.zip
52325: Clarify doc for edge cases of named references and nofork substitution
Unposted whitespace change avoids a parse error in ${ ... } with comments.
Diffstat (limited to 'Src')
-rw-r--r--Src/subst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/subst.c b/Src/subst.c
index 4ef1d1269..3a1187350 100644
--- a/Src/subst.c
+++ b/Src/subst.c
@@ -1956,7 +1956,7 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int pf_flags,
 		     * Then fall through to the regular handling of $REPLY
 		     * to manage word splitting, expansion flags, etc.
 		     */
-		    char *outfmt = ">| %s { %s ;}";	/* 13 */
+		    char *outfmt = ">| %s {\n%s\n;}";	/* 13 */
 		    if ((rplytmp = gettempname(NULL, 1))) {
 			/* Prevent shenanigans with $TMPPREFIX */
 			char *tmpfile = quotestring(rplytmp, QT_BACKSLASH);