aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/util.bash2
-rw-r--r--lib/vendor/bpt.bash3
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/util.bash b/lib/util.bash
index fac492c..bae620b 100644
--- a/lib/util.bash
+++ b/lib/util.bash
@@ -213,7 +213,7 @@ file_template_bpt()
file="$1" ; shift
- eval "$@ bpt.main ge \"$file\""
+ eval "$* bpt.main ge \"$file\""
printf "\n"
}
diff --git a/lib/vendor/bpt.bash b/lib/vendor/bpt.bash
index 08d15b2..cda1030 100644
--- a/lib/vendor/bpt.bash
+++ b/lib/vendor/bpt.bash
@@ -189,6 +189,7 @@ bpt.__lr_parse() (
# and|or|if|elif|else|for|in|include: <as is>
# id: [[:alpha:]_][[:alnum:]_]*
bpt.scan() (
+ # shellcheck disable=SC2030
local -r ld="$1" rd="$2" error_fn="${3:-__error}"
bpt.__test_delims "$ld" "$rd" || return 1
@@ -222,7 +223,9 @@ bpt.scan() (
local quote=''
# Location trackers
+ # shellcheck disable=SC2030
local num_lines=0
+ # shellcheck disable=SC2030
local num_bytes=0
# String processing tracker & buffer.