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

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



On Mon, 30 Jan 2012 22:21:52 +0200
Felipe Contreras <felipe.contreras@xxxxxxxxx> wrote:
> 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?

Possibly --- I seem to remember there's a change request in POSIX to do
with this kind of stuff, but I'm not sure if it covered this case.

-- 
Peter Stephenson <pws@xxxxxxx>            Software Engineer
Tel: +44 (0)1223 692070                   Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK


Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog



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