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

Re: [PATCH?] Nofork and removing newlines



On Wed, Mar 6, 2024, at 5:22 PM, Mikael Magnusson wrote:
> "${ foo}" and ${ foo} having the same wordsplitting behavior but only
> differing in stripping newlines feels a bit magical and weird.

I agree.  Personally, I'm always surprised when quoting does anything
other than suppress splitting, globbing, and special characters in
patterns.  For instance, I can never remember this pitfall mentioned
in workers/52666, even though (I think) I understand why it happens:

	% print ${:-{}x}
	{}x
	% print "${:-{}x}"
	{x}

-- 
vq




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