* magic-space and pipe symbols in parentheses
@ 2018-04-03 19:34 Frank Terbeck
2018-04-03 22:52 ` Bart Schaefer
0 siblings, 1 reply; 3+ messages in thread
From: Frank Terbeck @ 2018-04-03 19:34 UTC (permalink / raw)
To: zsh-workers; +Cc: sim.desaulniers
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: magic-space and pipe symbols in parentheses
2018-04-03 19:34 magic-space and pipe symbols in parentheses Frank Terbeck
@ 2018-04-03 22:52 ` Bart Schaefer
2018-04-05 8:49 ` Frank Terbeck
0 siblings, 1 reply; 3+ messages in thread
From: Bart Schaefer @ 2018-04-03 22:52 UTC (permalink / raw)
To: zsh-workers; +Cc: sim.desaulniers
On Tue, Apr 3, 2018 at 12:34 PM, Frank Terbeck <ft@bewatermyfriend.org> wrote:
>
> Simon Désaulniers found this
Probably the same thing discussed in workers/42573 (the "lexer issue" thread).
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: magic-space and pipe symbols in parentheses
2018-04-03 22:52 ` Bart Schaefer
@ 2018-04-05 8:49 ` Frank Terbeck
0 siblings, 0 replies; 3+ messages in thread
From: Frank Terbeck @ 2018-04-05 8:49 UTC (permalink / raw)
To: zsh-workers; +Cc: sim.desaulniers
Hey Bart!
Bart Schaefer wrote:
> On Tue, Apr 3, 2018 at 12:34 PM, Frank Terbeck <ft@bewatermyfriend.org> wrote:
>>
>> Simon Désaulniers found this
>
> Probably the same thing discussed in workers/42573 (the "lexer issue" thread).
Seems like you are correct. After Peter's patch from 42581, this issue
is gone as well. Thanks!
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-04-05 8:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-03 19:34 magic-space and pipe symbols in parentheses Frank Terbeck
2018-04-03 22:52 ` Bart Schaefer
2018-04-05 8:49 ` Frank Terbeck
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).