-
Notifications
You must be signed in to change notification settings - Fork 364
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
Investigate different method of template replacement instead of $-prefixed #239
Comments
Apparently braces need to be escaped in bash terminals as well, so might need to just use another delimiter symbol. I'm unable to find any documented best practices involving command line arguments specifically for string/template replacement, so any resources someone can point me to would be much appreciated. |
As found in #291, there also might be issues with only using a prefix, so using a suffix should be considered. |
I was doing some reading on the python If changing the delimiter is desired, then creating a custom template class that inherits from Alternatively, this edge case could be documented in the docs with the solution of including braces. Or, the documentation could include braces in all cases and the inclusion of braces is essentially considered the "default" usage. |
Description of Problem & Solution
Right now using templates in bash requires escaping the dollar signs. Investigate using a style similar to Python instead to help with this, e.g.:
Proposed Implementation:
Allow both dollar signed template
$VARIABLES
as well as braced{VARIABLES}
to mean the same thing. However since {} may need to be escaped (see below), another solution might need to be investigated.If any best practices exist, those should be followed.
Alternative Solutions:
TODO: Research how most other command line interfaces approach this before finalizing a solution.
The text was updated successfully, but these errors were encountered: