Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] Extend (z) test with data that seemed to cause fail
- X-seq: zsh-workers 40803
- From: Sebastian Gniazdowski <psprint3@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] Extend (z) test with data that seemed to cause fail
- Date: Thu, 09 Mar 2017 00:16:36 -0800
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.com; h= content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= mesmtp; bh=B/8PgrVi3ft22CLoLkvRZz1YbwQ=; b=Fo4lgqm+xVtKIBm2VZP5T vRizXkO9Pbq4a3MVtSSypA4Ebx/diKsK2behB9d9KUpHUrhEqYA3dRw8N/qxp+Al 42HaN+Ai9RxlY27JuAR15FjMtf+vgKV4+5CMWl2WwmI+qkC16PsrDNvgCcR9VyzR Sc4HB5iQy0c6WOgyMJ5B+I=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=smtpout; bh=B/8PgrVi3ft22CLoLkvRZz1Yb wQ=; b=TUV2S7MuBC/7PXabjQdwoiqf90PIT2ZsmnO3fii85KphKi7kXgiTEAklg pDXNcTGNVIPbOjFiOZs4/Ycmvg7zslaZDw5VLlO70hdc6R/bNEaGYRUVnAkMpF4b 1kTHX1KsPeT1Pg5Rto+zIGyam7aL9JeO+mgBhSsFgYLBW9FX7o=
- 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
Hello,
I have a finished script where I use (z). I once feed it a data:
^FZUI^_ text-field example:
^Zzuitfieldtfield1_1^Z''^Z''^Z1^ZZUI\[my_tfield1_width\]^ZZUI\[my_tfield1_start\]^ZZUI\[my_tfield1_data\]^\
on which for 4th "^Z..." segment it was returning multiple segments.
This happened for 5 minutes, then it stopped. Because I wasn't touching
the script-black-box, I think it's really a (z) thing. I suspect some
missing "calloc" instead of "malloc", etc. So maybe it's worth adding
this test case (patch attached) to D04parameter with this exact data:
foo="^FZUI^_ text-field example:
^Zzuitfieldtfield1_1^Z''^Z''^Z1^ZZUI\[my_tfield1_width\]^ZZUI\[my_tfield1_start\]^ZZUI\[my_tfield1_data\]^\"
print "${#${(z@)foo}}"
0:Test real-world data that once seemed to fail
>4
--
Sebastian Gniazdowski
psprint3@xxxxxxxxxxxx
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index fba95cc..ec799f2 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -640,6 +640,11 @@
>echo
>$(|||) bar
+ foo="ZUI text-field example: zuitfieldtfield1_1''''1ZUI\[my_tfield1_width\]ZUI\[my_tfield1_start\]ZUI\[my_tfield1_data\]"
+ 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