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

Bug with sh emulation; shouldn't KSH_TYPESET be set?



Hi,

This works on bash

---
_test ()
{
	local t=$(echo foo --bar)
}
_test
---

But not in zsh, with sh emulation. Enabling KSH_TYPESET makes it work.

Shouldn't it be enabled with sh emulation?

BTW. What exactly is 'emulate sh' supposed to emulate? I would like to
run that shell to check for compatibility issues, and apparently it's
not bash.

Cheers.

-- 
Felipe Contreras



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