--- tags: - bash --- [[Bash]] [[Globbing patterns]] --- See https://www.shellcheck.net/wiki/SC2086 issue with building a command-line and prevent globbing by quoting parameter expansion, solution: use array. ``` #!/usr/bin/env bash function test() { echo "${@}" } function blaat() { local flags test hello "${flags[@]}" } function blaat1() { local flags flags=(a b c) test hello "${flags[@]}" } blaat blaat1 ``` ``` ❯ bash /tmp/tmp.qI8lPlBQUe hello hello a b c ```