From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3561 invoked by alias); 29 Jan 2012 14:33:30 -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: 30145 Received: (qmail 1724 invoked from network); 29 Jan 2012 14:33:19 -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.48 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=jmp8Luw6jlofyfv8DuYSaxdW/fRmr802X37VIM1p5GU=; b=H8mEUCciP2khXjrg+qN9YcyZ0nbe9QlMSLAEOrFL8qo/FRqUQaiOV4YdPqqWYok50N GfZv0xYE2Qu6OpG1sDOuTjIDwJQXfAaYoL+BtBF8HS0mKsHBMhP/A+N9t9ntIEvuPXwc 4nDEDc8+vF8cL9un1AL+UUf8p+uOAzIDQC6pQ= MIME-Version: 1.0 In-Reply-To: References: Date: Sun, 29 Jan 2012 15:25:13 +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 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; -- Mikael Magnusson