Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] Support the mksh's ${|func;} substitution

On Thu, 12 Sep 2019 at 07:35, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Wed, Sep 11, 2019 at 7:07 PM Sebastian Gniazdowski
> <sgniazdowski@xxxxxxxxx> wrote:
> > (...)
> > and it would result in FOUR array elements, not three. [...]
> > I think that in order to
> > allow contraction of the result, the (x) flag could use only reply,
> > without REPLY as opposed to the (e), unless we do that reply being
> > just set invalidates REPLY and allows the empty result.
> Hm, perhaps you're still confused about something.  The value of
> $REPLY means nothing after the code has run -- it's strictly an input.
> $reply is the only output.

Yes I was opting for such settlement, however what you wrote seems
contradict to:

> 4. else if REPLY is set, the value of REPLY is used
>    (so the corresponding element changes, possibly to an empty string)
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org

Messages sorted by: Reverse Date, Date, Thread, Author