This, 
```bash
if which eix &> /dev/null; then
```
is considered a bashism, ie, code expected to run under bash but not under plain sh. We enforce plain sh, even though Gentoo might default to bash being the default shell.