-
-
Notifications
You must be signed in to change notification settings - Fork 531
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
escaping curly braces in a tox command doesn't work #212
Comments
Original comment by @hpk42 add changelog entry for latest PR merge: → <> |
Original comment by @msabramo I don't depend on the current functionality. |
Original comment by @jayvdb using {{..}} would also be a breaking change, as that is legal syntax; see https://bitbucket.org/hpk42/tox/pull-requests/186 |
Original comment by @jayvdb A reasonable way to avoid this being a breaking change is to use {{..}} as the way to add literals, as that is the same syntax as str.format, and I am guessing that '{foo}' is an illegal variable name (or at least it is an improbable and silly name to be in use as a variable name.). |
Original comment by @jayvdb https://bitbucket.org/hpk42/tox/pull-requests/185 fixes this for me |
Original comment by @jayvdb Before that commit in 1.8.x,
So it looks like it was a partial fix, avoiding the config layer claiming it as substitution, but the un-quoting part of the fix wasnt done. |
Original comment by @jayvdb It looks like this feature was introduced in https://bitbucket.org/hpk42/tox/commits/9d7345ef4b2be4f12a30a887fcda30c7b268c245 , and tests in https://bitbucket.org/hpk42/tox/commits/0c8a958f574b9d25eb16343e318cf88495087bd5 However I also cant find any version of tox, or tox incantation, where it works as explained in the documentation. |
Original comment by kjwilcox I managed to find a "better" workaround by invoking bash in the tox.ini bash -c 'find {envsitepackagesdir} -name my_directory_criteria -type d -print0 | xargs -0 django-admin.py test [] ' |
Original comment by kjwilcox Encountered this on tox 2.1.1 on ubuntu 14.04 python 2.7.6. Made use of find -exec impossible since the slashes were leaked through. |
I was trying to delete a few specific files using the "find" command, but couldn't get tox to ignore the required curly braces in the command:
Having "{}" in the tox command breaks since tox looks for a variable named "" in the config. The above is the result of attempting to escape the curly braces with back-slashes, as per the documentation: You can escape curly braces with the \ character if you need them, ...
My environment:
The text was updated successfully, but these errors were encountered: