Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Is there some bash source that Zsh will not parse?



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