Skip to content

Commit b9f50bc

Browse files
authored
Merge pull request #463 from tfutils/fix/453-unquoted-args-tfenv-exec
Fix #453: Unquoted argument iteration in tfenv-exec.sh causing word-splitting
2 parents c01c7ac + 0bd45d1 commit b9f50bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/tfenv-exec.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function realpath-relative-to() {
2929
export -f realpath-relative-to;
3030

3131
function tfenv-exec() {
32-
for _arg in ${@:1}; do
32+
for _arg in "${@}"; do
3333
if [[ "${_arg}" == -chdir=* ]]; then
3434
chdir="${_arg#-chdir=}";
3535
log 'debug' "Found -chdir arg: ${chdir}";

0 commit comments

Comments
 (0)