From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12145 invoked by alias); 29 Jan 2012 14:27:40 -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: 30144 Received: (qmail 1603 invoked from network); 29 Jan 2012 14:27:38 -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 autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.216.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Fn1VsM6wzp3TPvSWWhhWpCACDfs4RRZA0H7ndPLyxWA=; b=nlcSr2OdlY1tmoT4ammPU//IzUSllue5FQWqEgsZbfZeSjloqWBep0LD9smQrp1lf0 5TLdd+pUV0KNj4E06sfEpDHbVOIbLSfN+YO4UbZmxeVcNCf4Cz9U6V8i0r+mdmuIyCbj 61XFbjmii73KxhnllQ3/b8fy5gVe2fYurep4o= MIME-Version: 1.0 In-Reply-To: References: Date: Sun, 29 Jan 2012 15:27:32 +0100 Message-ID: Subject: Re: Bug with bash emulation regarding ':' From: Mikael Magnusson To: Felipe Contreras Cc: "Benjamin R. Haskell" , zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 On 29 January 2012 15:25, Mikael Magnusson wrote: > On 29 January 2012 14:44, Felipe Contreras wrote: >> On Sun, Jan 29, 2012 at 7:31 AM, Benjamin R. Haskell wrote: >>> On Sun, 29 Jan 2012, Felipe Contreras wrote: >>>> Seems like there's a bug in bash emulation: >>>> >>>> [...] >>>> >>>> Zsh with bash emulation generates [...] >>> >>> >>> When you say "bash emulation" what do you mean? >> >> emulate bash > > There's no such emulation mode. > > emulate [ -LR ] [ {zsh|sh|ksh|csh} [ -c arg ] ] > With single argument set up zsh options to emulate the specified shell > as much as possible. csh will never be fully emulated. If the > argument is not one of the shells listed above, zsh will be used as a > default > > This seems to not actually be true though, > if (ch == 'r') > ch = zsh_name[1]; > > /* Work out the new emulation mode */ > if (ch == 'c') > emulation = EMULATE_CSH; > else if (ch == 'k') > emulation = EMULATE_KSH; > else if (ch == 's' || ch == 'b') > emulation = EMULATE_SH; > else > emulation = EMULATE_ZSH; > (btw, this code is from 'Initial revision' anno 99) -- Mikael Magnusson