Add quote_char parameter to the ini_subsetting resource type #95
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The quote_char is used to quote the entire setting when it is modified as a result of changes to some subsettings.
For an example let's assume we have a setting of this form:
and we want to add the
-Xmsparameter to the setting, for that purpose we define a resource like this:which results into the following setting:
But this is not what we intended - if this setting is read by the bash shell the
-Xms256mparameter is interpreted as a command to be executed rather than a value to be assigned to the JAVA_ARGS variable.To fix this problem the quote_char parameter was added to the ini_subsetting resource type, and we'll take advantage of it to fix the problem in the above example like so:
which will result into:
JAVA_ARGS="-Xmx256m -Xms256m"which is what we intended.