The bash tarball is distributed with a ton of really useful example scripts that never make it onto the live system in Gentoo. One particular one of extreme interest to me is shprof, a line profiler for shell scripts, which I've been wanting forever. I'm attaching a patch to the ebuild to install examples on demand.
Created attachment 153189 [details, diff] bash-3.2_p39-install-examples.patch
i think it'd be better to install into /usr/share/doc/${PF}/examples/${d} as that is typically where people go for documentation (which examples are a class of)
That's reasonable too. I just checked my system for /usr/share/*/examples when making this, and 4-5 dirs existed, so I used it. Want a new patch, or want to just make the change from doins/doexe to dodoc yourself?
if you change the path (and add a space before each semicolon), then the change looks good ... feel free to merge it
Done, thanks!