Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug with bash emulation regarding ':'
On 29 January 2012 15:25, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> 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;
>
(btw, this code is from 'Initial revision' anno 99)
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author