Open izabera opened 9 years ago
printf doesn't set array variables correctly
printf -v "var[2]" x; echo "${var[2]}" ^-- SC2154: var is referenced but not assigned.
Or rather, printf does set array variables correctly, but shellcheck fails to note that it has done so.
printf
printf doesn't set array variables correctly