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

Bug with bash emulation regarding ':'



Hi,

Seems like there's a bug in bash emulation:

---
#!sh

_test ()
{
	array="one two three"
	for e in $array
	do
		echo "'$e'"
	done
}

l=
: ${l:=$(_test)}
echo "_${l}_"
---

Bash generates:

_'one'
'two'
'three'_

Zsh with bash emulation generates:

_'one two three'_

-- 
Felipe Contreras



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