zsh-workers
 help / color / mirror / code / Atom feed
* Bug with sh emulation; shouldn't KSH_TYPESET be set?
@ 2012-01-30 20:21 Felipe Contreras
  2012-01-30 20:43 ` Frank Terbeck
  2012-01-31  9:43 ` Peter Stephenson
  0 siblings, 2 replies; 6+ messages in thread
From: Felipe Contreras @ 2012-01-30 20:21 UTC (permalink / raw)
  To: zsh-workers; +Cc: Felipe Contreras

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-01-31 10:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-30 20:21 Bug with sh emulation; shouldn't KSH_TYPESET be set? Felipe Contreras
2012-01-30 20:43 ` Frank Terbeck
2012-01-30 21:46   ` Felipe Contreras
2012-01-30 22:17     ` Frank Terbeck
2012-01-30 22:20     ` Vincent Lefevre
2012-01-31  9:43 ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).