Shellckeck found errors in one or more shellscripts provided by dev-tex/latexmk. Kindly refer to the findings below and the shellcheck wiki for further details: ------------------------------------------------ script: /usr/portage/dev-tex/latexmk/files/completion.bash-2:33 opts=$(echo "$output" | sed -n "s/^[[:space:]]\+$prev[[:space:]]\+\(<[^>]\+>\).*\$/\1/p") error: Use braces when expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet). (https://github.com/koalaman/shellcheck/wiki/SC1087) This is an automated bug report. Conservative settings were used to minimize false-positives but there's still a chance that the above list contains non-issues. Running shellcheck again with default settings could detect other possible issues. References: [1] this script: https://github.com/heeplr/gentoo-shellbug [2] shellcheck: https://www.shellcheck.net/