Commit 892ac959 authored by Mislav Marohnić's avatar Mislav Marohnić
Browse files

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
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -43,7 +43,9 @@ while IFS= read -r line; do
    # Naively split patterns by whitespace for now.
    # In the future, use a sed script to split while
    # respecting quoting.
    set -f
    patterns=($patterns)
    set +f
    arguments=("$@")

    # Match the expected argument patterns to actual