From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15146 invoked by alias); 30 Jan 2012 20:22:09 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 30156 Received: (qmail 18368 invoked from network); 30 Jan 2012 20:21:58 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.215.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=lzOdjY7F8h9rjoRRyMVoPmejIbx7QBtboQC8kPPUH5k=; b=od15m5jejlmh647f97X8eWSIa543mi0obMoJ6E+jt9wUGEE1DbKRRYk1t24AcY/eqa Uyrzuf7nWPopSQ8aW0Mm9w1G4FlSVW3ax20EFSlvvLuKOWfeWba1WlPKHLYFTiJN1cDS zzUB0H1ftELErY7GxU+1QZJuVZYsnp9S3Eauk= MIME-Version: 1.0 Date: Mon, 30 Jan 2012 22:21:52 +0200 Message-ID: Subject: Bug with sh emulation; shouldn't KSH_TYPESET be set? From: Felipe Contreras To: zsh-workers@zsh.org Cc: Felipe Contreras Content-Type: text/plain; charset=UTF-8 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