Commit 892ac959 by Mislav Marohnić

Prevent glob expansion in stub patterns

When stub patterns were broken down into an array, they were
accidentally subject to glob expansion. E.g., a pattern '*' might expand
to whatever is in the current directory. This is unwanted, as we need to
preserve patterns as-is.
parent 5b6700cb
...@@ -43,7 +43,9 @@ while IFS= read -r line; do ...@@ -43,7 +43,9 @@ while IFS= read -r line; do
# Naively split patterns by whitespace for now. # Naively split patterns by whitespace for now.
# In the future, use a sed script to split while # In the future, use a sed script to split while
# respecting quoting. # respecting quoting.
set -f
patterns=($patterns) patterns=($patterns)
set +f
arguments=("$@") arguments=("$@")
# Match the expected argument patterns to actual # Match the expected argument patterns to actual
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment