In line 37: eval arg="\$$i" - I have --config=/etc/kernels/genkernel.conf as $2, and $#=20, so on other 20 param: eval arg="\$20" - this is equal to "${2}0", so I got "Could not read /etc/kernels/genkernel.conf0" Must be at least: eval arg="\${$i}" Or change whole loop to 'for arg in "${@}"; do' without eval. Second solution attaching... Reproducible: Always
Created attachment 409492 [details, diff] genkernel-config-name.patch Fix --config= with >9 params at best way
This was fixed long time ago via https://github.com/gentoo/genkernel/commit/f5f28c6c6fa09a746d317c0956659eb6c6454516