Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command substitutions with nested parentheses are not escaped correctly #9

Open
steinybot opened this issue Apr 8, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@steinybot
Copy link
Member

Description

Command substitutions that contains nested parentheses (e.g. with a nested parameter expansion containing a flag) are not escaped correctly.

Versions

Component Version
Zsh Escape a04551a (git rev-parse HEAD)
OS Windows 10
Zsh zsh 5.5.1 (i686-pc-cygwin) (zsh --version)

Steps To Reproduce

Steps to reproduce the bug:

  1. Use the following file bad-script.zsh:
foo=$(print ${(qq)bar})
  1. Run:
zsh-escape.zsh fix bad-script.zsh

Expected Behaviour

foo="$(print ${(qq)bar})"

Actual Behaviour

foo="$(print ${(qq)"bar})
@steinybot steinybot added the bug Something isn't working label Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant