aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bashast/libbashWalker.g1
-rw-r--r--scripts/command_execution.bash1
2 files changed, 2 insertions, 0 deletions
diff --git a/bashast/libbashWalker.g b/bashast/libbashWalker.g
index 95f8a90..5e3fd6e 100644
--- a/bashast/libbashWalker.g
+++ b/bashast/libbashWalker.g
@@ -282,6 +282,7 @@ string_part returns[std::string libbash_value, bool quoted, bool is_raw_string]
})*)
|(SINGLE_QUOTED_STRING) => ^(SINGLE_QUOTED_STRING node=SINGLE_QUOTED_STRING_TOKEN) {
$libbash_value = get_single_quoted_string(node);
+ $quoted = true;
}
|(ARITHMETIC_EXPRESSION) =>
^(ARITHMETIC_EXPRESSION value=arithmetics {
diff --git a/scripts/command_execution.bash b/scripts/command_execution.bash
index 0927642..89a0ed7 100644
--- a/scripts/command_execution.bash
+++ b/scripts/command_execution.bash
@@ -64,6 +64,7 @@ printf "%s %s\n" abc def
printf "%s %s\n" $FOO001, def
printf "123-%s" 456 789
printf "\n"
+printf 'debug-%s ' dvc kbd nla
printf "123-%s"
((FOO010=1))
echo $FOO010