Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Is there some bash source that Zsh will not parse?
- X-seq: zsh-users 24045
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx>
- Subject: Re: Is there some bash source that Zsh will not parse?
- Date: Thu, 11 Jul 2019 02:46:56 +0200
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=N5PjKmZki5n+GTlTlO6u67EWigt29K3ebOcixOeZW+k=; b=CByrzFASIr92t4cRkU/oAO1TGVnRWGqBej3/pirSgzL3paUgtZi0SdTqB6hw0Y+SC/ 88mwejaO6bVZqRdoZawGFf5aj5jvBsz1p9GS80cTl6WomoNu/RdQGHnrOOetSGw59fRq 17gKINMAvoW9jpqCvIUKCNWuYuM6cBBLyY7SrGMBc1Zb++gU3zlmEHHsxdEnIe3A9L3Q Tn87dEeFdfe1zS72BojZuOxUGDUbMovN9gwHlAFAHOu61y0XKurRmQ7gn9lIUyCji4sB llETEkqTK8aMVM277NpgHtVY/WxJ9Dsv75q3QqArZQn9DaIM3BRp7hDuEi5vY+Lzggvg +Eyg==
- In-reply-to: <20190710224713.GA30662@spodhuis.org>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVBokj8C0rwX3qezUZoWi7xrnCuKu9f0fYXfMqHVJBoPYQ@mail.gmail.com> <20190710224713.GA30662@spodhuis.org>
On Thu, 11 Jul 2019 at 00:47, Phil Pennock
<zsh-workers+phil.pennock@xxxxxxxxxxxx> wrote:
>
> On 2019-07-10 at 18:10 +0200, Sebastian Gniazdowski wrote:
> > in the opposite direction, this is rather true, e.g. the globbing
> > flags aren't parsed correctly:
>
> ...
> Note in particular that where zsh has ${(flags)varname} for parameter
> expansion flags, bash has ${varname@operator} syntax for expansion
> transformations. There's other stuff around indirect variables, case
> modification expansions, and `shopt`, which all come to mind. Almost
> certainly a lot more.
Yes but i meant actually just the parser. I believe the contents of
${...} are taken as a whole by the parser to then be passed to
stringsubst() and the like, so that would be a "late"-parsing, which
i'm not interested in currently.
> If Zsh's goals are changing such that complete Bash compatibility is
> required in bash mode (as opposed to "enough to get by") then it might
> be worth trying to run the bash test suite against Zsh, with suitable
> modifications to ensure Zsh is in the correct mode always.
> That should prove ... educational.
Yeah, that would be interesting :)
> -Phil
--
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org
Messages sorted by:
Reverse Date,
Date,
Thread,
Author