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

Re: [PATCH?] Nofork and removing newlines



On Wed, Mar 6, 2024 at 9:57 AM Stephane Chazelas <stephane@xxxxxxxxxxxx> wrote:
>
> Sorry, I hadn't realised ${ cmd } also didn't do IFS-splitting,
> so it is indeed departing a lot from command substitution and
> assuming we don't care about keep compatibility with
> ksh93/mksh/bash, I agree the proposed behaviour makes sense

If SH_WORD_SPLIT is in fact set (as when emulating) then it is
applied, so that's the other-shell-compatibility path.

> Either way or always removing all newlines or always removing one
> newline or removing one newline when not quoted are fine with me.

Thanks.  Anyone else waiting to weigh in?




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