Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug with bash emulation regarding ':'
- X-seq: zsh-workers 30145
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Felipe Contreras <felipe.contreras@xxxxxxxxx>
- Subject: Re: Bug with bash emulation regarding ':'
- Date: Sun, 29 Jan 2012 15:25:13 +0100
- Cc: "Benjamin R. Haskell" <zsh@xxxxxxxxxx>, zsh-workers@xxxxxxx
- 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=
- In-reply-to: <CAMP44s0au9K+PKsJHAsMt2qohKYDXx1gaE6nR8Y4kGh2AqSpTw@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAMP44s2Zo5U=RVuznntDOFeqUZeJdmg1XfHMg4egu-1PRjnkKA@mail.gmail.com> <alpine.LNX.2.01.1201290026500.11259@hp.internal> <CAMP44s0au9K+PKsJHAsMt2qohKYDXx1gaE6nR8Y4kGh2AqSpTw@mail.gmail.com>
On 29 January 2012 14:44, Felipe Contreras <felipe.contreras@xxxxxxxxx> wrote:
> On Sun, Jan 29, 2012 at 7:31 AM, Benjamin R. Haskell <zsh@xxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author