From: Frank Terbeck <ft@bewatermyfriend.org>
To: zsh-workers@zsh.org
Cc: sim.desaulniers@gmail.com
Subject: magic-space and pipe symbols in parentheses
Date: Tue, 03 Apr 2018 21:34:36 +0200 [thread overview]
Message-ID: <87muyk13ub.fsf@ft.bewatermyfriend.org> (raw)
Hey list,
Simon Désaulniers found this (the ^ in the line below indicates the
cursor position at a zsh prompt):
zsh% $(foo) bar
^
Now insert "| " with space being bound to magic-space:
bindkey ' ' magic-space
...to get this (the " bar" is gone):
zsh% $(foo| )
^
This works from "zsh -f" with the additional bindkey I mentioned.
I've bisected this down to:
commit 4073a6655cafc78728cb126cfe44e89cc7ba720a
Author: Peter Stephenson <pws@zsh.org>
Date: Thu Nov 3 10:30:00 2016 +0000
39815: Read input to end on parse error in $(...) inside a string.
This allows ${(z)} to output the whole string, although we can't do
word splitting from the error onwards.
Not sure how this is related to magic-space, but this is what I get.
Regards, Frank
--
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
-- RFC 1925
next reply other threads:[~2018-04-03 21:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-03 19:34 Frank Terbeck [this message]
2018-04-03 22:52 ` Bart Schaefer
2018-04-05 8:49 ` Frank Terbeck
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=87muyk13ub.fsf@ft.bewatermyfriend.org \
--to=ft@bewatermyfriend.org \
--cc=sim.desaulniers@gmail.com \
--cc=zsh-workers@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).