Continued from bug 727832 comment 6, bash_command_not_found_re does not handle the case where sh is busybox:
> $ ash -c 'foo'
> ash: foo: not found
lib/portage/package/ebuild/doebuild.py: bash_command_not_found_re = re.compile(
lib/portage/package/ebuild/doebuild.py- r"(.*): line (\d*): (.*): command not found$"
If sh is busybox, then command-not-found detection not working properly is the least of our worries. IIRC busybox sh isn't POSIX-compliant.
While at it:
% dash -c foo
dash: 1: foo: not found
$ mksh -c 'foo'
mksh: foo: inaccessible or not found