eutils provides a sane/safe/standard way of mucking with shopts, so use it instead of local custom code
Created attachment 239309 [details, diff] darcs.eclass.patch
Pushed to the tree. Thank you, Mike!