From: Jaromil <jaromil@dyne.org>
To: zsh-users@zsh.org
Subject: non-breaking space hangs pipe
Date: Thu, 2 Jul 2015 11:17:52 +0200 [thread overview]
Message-ID: <20150702091752.GB20209@fork> (raw)
[-- Attachment #1: Type: text/plain, Size: 1228 bytes --]
dear zsh'ers
in our ZSh made application Tomb we hit a bug that depends from a
translation error in GPG and that could be solved along with any other
similar situation by ZSh if some sort of "canonization"
non-blocking-space (NBS) is made for the '=~' and perhaps other string
operators. I think that handling the special case of NBS is particularly
valuable for zsh script users since such bugs can be very hard to spot.
Here the detail on our issue:
https://github.com/dyne/Tomb/issues/205#issuecomment-117413673
as Arthaud indicates, this is easily replicable with [[ " X" =~ "X" ]]
where the first character in " X" is a non-breaking space; this gets the
zsh interpreter stuck and it seems not even Ctrl+C works.
While I'll file also the bug about an NBS in the GnuPG French
translation, I think is worth considering implementing approaches that
will make ZSh act as one would expect in all such cases.
ciao
--
Denis "Jaromil" Roio, Dyne.org Think (& Do) Tank
We are free to share code and we code to share freedom
Web: https://j.dyne.org Contact: https://j.dyne.org/c.vcf
GPG: 6113 D89C A825 C5CE DD02 C872 73B3 5DA5 4ACB 7D10
Confidential communications: https://keybase.io/jaromil
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 1513 bytes --]
next reply other threads:[~2015-07-02 9:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-02 9:17 Jaromil [this message]
2015-07-02 9:39 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150702091752.GB20209@fork \
--to=jaromil@dyne.org \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).