Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [BUG] (z)-flag interrupts if $() in input
- X-seq: zsh-workers 39784
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [BUG] (z)-flag interrupts if $() in input
- Date: Sun, 30 Oct 2016 13:14:59 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=peUG8mN+t5inClWi8bi0gFXG9CjKAeBX459hEKvWHiY=; b=oQu6whN1+KwCXCZ6b4ucWmUDhrWoGK/eANhlKlxauzH71Cbm4ln+t7Srj8F7QlW8nr KmR8lZpOrXC7UdgsqbBhfvbec0uISuXrb/nIDeZb34RTSPfFuvJkqhQsKdFbrIgW89Up mK+WiX+4Jep9e7M3P4tVWKfmNxoc3DY0uXwYQgoBySTdbsgdBlV2L4Dl1wqtVvlUKDrb 5cy1jr+yYajLYtJMga6oUuJ2qwsGLywMEazB+uk2b5FkDyyEoRgeRul1IhTpp7b5wX0/ d+mA0CvVuGFGEcBGWK+1DFF60y3/Fi5nvinDgbQRusH7iJ27zWJnUMMjFkH4bsSZW+7d kmVw==
- In-reply-to: <161030110455.ZM14677@torch.brasslantern.com>
- 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: <1477809189.1509250.771544241.795E8177@webmail.messagingengine.com> <20161030152525.GA12137@fujitsu.shahaf.local2> <20161030170949.612551cf@ntlworld.com> <161030110455.ZM14677@torch.brasslantern.com>
On Oct 30, 11:04am, Bart Schaefer wrote:
}
} torch% a='x $(|||) y'
} torch% print -rl -- ${(z)a}
} x
} $(||
} torch%
A little progress but not much.
If we look at this:
torch% echo x $(|||) y
zsh: parse error near `||'
zsh: parse error near `$(|||) y'
Note that we have one parse error inside $(...) and then another for
the whole expression.
It's the inner parse error that kills (z). gettokstr() returns LEXERR
to bufferwords() and it stops building the array. But ... even if I
force the token to STRING there to make the loop continue, the next
ctxlex() returns ENDINPUT with empty tokstr, so the result isn't changed.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author