/usr/bin/eltpatch belongs to app-portage/elt-patches-20170815 and it installs with a shebang of #!/bin/bash even if installed inside a Gentoo Prefix. My prefix is on a system where the bash interpreter is inside the prefix only. Reproducible: Always Steps to Reproduce: 1. emerge app-portage/elt-patches 2. head /usr/bin/eltpatch Expected Results: The shebang should respect the actual location of bash if it is not at /bin/bash When I manually fix the shebang with my actual bash location in my Gentoo Prefix, then lots of other things inside the Gentoo Prefix begin to work such as simple tasks like "emerge vim".
eltpatch from 20210827 uses bash from EPREFIX (and looks in EPREFIX for patches)