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

curly brace escaping does not work. #14

Open
Anvil opened this issue Sep 24, 2020 · 3 comments
Open

curly brace escaping does not work. #14

Anvil opened this issue Sep 24, 2020 · 3 comments
Labels
bug Something isn't working upstream

Comments

@Anvil
Copy link

Anvil commented Sep 24, 2020

Curly braces cannot be escaped properly in backticks expressions.

If i try in the tox.ini to set an expression such

setenv =
    VERSION = `echo "\{a\}"`

That leads to a tox.exception.ConfigError: ConfigError: substitution key 'a' not found

I've also tried to double the backslash (\\{) and in that case the substitution is not performed but a '{' is passed to the command, which is inconsistent.

@jayvdb jayvdb added the bug Something isn't working label Oct 13, 2020
@jayvdb
Copy link
Owner

jayvdb commented Oct 17, 2020

@Anvil thanks for raising this. It turns out to be an upstream issue in tox 3.20+ tox-dev/tox#1690 . You can avoid this by using tox 3.19.0 until we've determine how tox core is going to proceed, and if necessary I add a workaround if they have decided to keep the new behaviour.

@jayvdb
Copy link
Owner

jayvdb commented Jan 27, 2021

I believe I fixed this upstream @Anvil . Could you confirm that? (And GitHub star my obscure little tool if it is helping you ... :)

btw, #17 fixes a recent breakage with tox - fix for that will be merged soon.

@Anvil
Copy link
Author

Anvil commented Jan 27, 2021

Thank you for your work. We'll test this as soon as we can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream
Projects
None yet
Development

No branches or pull requests

2 participants