Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Empty $''
- X-seq: zsh-workers 38085
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Empty $''
- Date: Thu, 3 Mar 2016 15:36:47 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=ullhYt+QVwDdRmNHQLLIsU2BIFd1NX7NDwEOXnkaMaM=; b=cN95fbWY9BXtHdKjx5RgPdgpKJtbeMJPpv/f7XpkyYHR8NgMyC1kbJgqMM8NnVWl0U K6lEr3Z6aCMC7DZuVR/abFxlZNPhhBMMLX+ZWzpACJKNq0zJSVpYPmIGjvKv/u2dRIqc R5/Bse/7rC33GceDD5twSVb1mFqSQWZjxSkv03Ck7B1zZeljPPZMxGP4TdmK9iF8d6zP fWAYFN576rIf6iYuzIfx7slG/Fmr5jiIrXEL1BWod5becI5C5zQVZqbc7EA5gD3hdpjU J/IjWKx4t+eHFovk0OBe5KNNLH0L2eLi2wsONJVj8+aEi5OwME8q2Dd+e4FC+RXKe5Nl BZ/Q==
- In-reply-to: <160303153436.ZM31948@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1533e4d3e82.cbf3800a134118.3897690426664036468@enosys.org> <160303153436.ZM31948@torch.brasslantern.com>
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