Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Extend (z) test with data that seemed to cause fail
- X-seq: zsh-workers 40806
- From: Sebastian Gniazdowski <psprint3@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] Extend (z) test with data that seemed to cause fail
- Date: Thu, 09 Mar 2017 03:32:50 -0800
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=9fzOmIUg7yei76Tr4piBCl+7sv k=; b=fIy21s5YPCSU4skcfINvcjjaidc2u/gYi5b0NmQY9bnPWalWD1nv97hDG+ H3Aj3Yc1OtTN3AxmnqWQTvfkXbvYTkVayt1pS+YjJH21/AKXwSVmhZ8puLs+l86W XsDmzkSvy0L33qG84zC1OQwbHeG0Cr40GcrBaVv2+rG03gG4I=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=smtpout; bh=9f zOmIUg7yei76Tr4piBCl+7svk=; b=jiqktebeAFuLrn3wkjAYsKzckr9VPjO4Oq jiGQ1Ws8uS2YFZimjO5Uvg/7pXSrOxnbhnviwIpZgQyoPx7cNgcHlT4kJYT3PlLR SlgpqXUpfzIviXDUxMl076y6qxk6TkMaLkqG/dxKWbzwIm0DKiE8nf6/Dz0+OufJ cCUQTm4wY=
- In-reply-to: <20170309100534.781a408b@pwslap01u.europe.root.pri>
- 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: <CGME20170309082643epcas1p442c9a88050e6607dc8eeb9e9138e8068@epcas1p4.samsung.com> <1489047396.3111577.905507696.636B7461@webmail.messagingengine.com> <20170309100534.781a408b@pwslap01u.europe.root.pri>
On Thu, Mar 9, 2017, at 02:05 AM, Peter Stephenson wrote:
> I've turned the file text into printable characters like this.
(...)
> + foo=$'\x06ZUI\x1f text-field example:
> \x1azuitfieldtfield1_1\x1a\'\'\x1a\'\'\x1a1\x1aZUI\[my_tfield1_width\]\x1aZUI\[my_tfield1_start\]\x1aZUI\[my_tfield1_data\]\x1c'
Checked with echo -E and print -r that \\[ is also needed, otherwise the
same
--
Sebastian Gniazdowski
psprint3@xxxxxxxxxxxx
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index fba95cc..f1f054d 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -640,6 +640,12 @@
>echo
>$(|||) bar
+ foo=$'\x06ZUI\x1f text-field example: \x1azuitfieldtfield1_1\x1a\'\'\x1a\'\'\x1a1\x1aZUI\\[my_tfield1_width\\]\x1aZUI\\[my_tfield1_start\\]\x1aZUI\\[my_tfield1_data\\]\x1c'
+ echo -E "$foo" > ~/output3
+ print "${#${(z@)foo}}"
+0:Test real-world data that once seemed to fail
+>4
+
psvar=(dog)
setopt promptsubst
foo='It shouldn'\''t $(happen) to a %1v.'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author