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 24044
- From: Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx>
- To: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- Subject: Re: Is there some bash source that Zsh will not parse?
- Date: Wed, 10 Jul 2019 18:47:14 -0400
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=spodhuis.org; s=d201905; h=In-Reply-To:Content-Type:MIME-Version:References :Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding :Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=DSfnhsqA7Nn3SWvnGp5E3aqowMw1IJNIpHIQBldXdnc=; b=FmfRBXJCwQePwMKF+mMJwo504L HXq1pg++jYg9sacxx11uYR1783coT1TSHmdJz+7yYiJX6/dviWnqUhdybrhGeEmKCSzzH/E8n6IfL iFnOaOETXAYyHQumItgcjmttTlc11NVa08EZ9Clj3BWshshm2EDXC0OlConM5qgQ5bSVhAppNKKxU RCqQQbkT4mEXA9abY0DpOw0buxZJZZ4l4BuJZSXdMBp+HDucYsywMRg4Zo7tOvG1i568fz6mNZAJg wLfMscIEdMrNRaSiYcTBn20bZ4u0WGxY5w3e+dD57e96L08zexn3j3JpPyZX+UgejJWQNvCOvMaLo aDMVSeIw==;
- Dkim-signature: v=1; a=ed25519-sha256; q=dns/txt; c=relaxed/relaxed; d=spodhuis.org; s=d201905e2; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=DSfnhsqA7Nn3SWvnGp5E3aqowMw1IJNIpHIQBldXdnc=; b=fRWz2r53nFAru8E0DwjjnnXPi w2alSiUdgkcUriUns/UypLTn5qwoGYoBG3V2/oXYsgnZIWrharOqvp53elCCA==;
- In-reply-to: <CAKc7PVBokj8C0rwX3qezUZoWi7xrnCuKu9f0fYXfMqHVJBoPYQ@mail.gmail.com>
- 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
- Openpgp: url=https://www.security.spodhuis.org/PGP/keys/0x4D1E900E14C1CC04.asc
- References: <CAKc7PVBokj8C0rwX3qezUZoWi7xrnCuKu9f0fYXfMqHVJBoPYQ@mail.gmail.com>
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:
Plenty, since Zsh has never until now aimed to be a complete superset of
Bash functionality; instead, we've added features to make it easier to
interoperate, eg making sure that command remote command-lines would
work.
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.
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.
-Phil
Messages sorted by:
Reverse Date,
Date,
Thread,
Author