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

Re: [PATCH] More stuff for Etc/FAQ



On Sun, Jan 14, 2024 at 12:47 PM Lawrence Velázquez <larryv@xxxxxxx> wrote:
>
> > +  mytt($(command)) removes trailing newlines from the output of mytt(command)
> > +  when substituting, whereas mytt(${ command }) and its variants do not.
>
> Hm, this diverges from the behavior of (m)ksh and (soon) bash:

This was based on the discussion (and Sebastian's sample code) of how
mksh ${|REPLY=$'abc\n'} works.  I thought it better to be consistent
for all of these forms.

I'm disinclined to change it for native zsh,  but I will look at
whether it can easily be changed either based on emulation mode or a
setopt (SH_WORD_SPLIT maybe?  Hrm).

Defintely worth mentioning in the FAQ tho.




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