The latest version of portage outputs mask information on stderr instead of stdout. Changing one line in /usr/bin/autounmask fixes it (at least partially, didn't test for side-effects): $r=`NOCOLOR=true emerge -pe =$packageToUnmask`; to $r=`NOCOLOR=true emerge -pe =$packageToUnmask 2>&1`; Reproducible: Always
This is fixed in git now: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=e461d1d07434eae6a7f9561ebbdef1a3e0daad29
Reassigning to dev-portage since I didn't want to break app-portage/autounmask.
There's one more commit here: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=7dfbdb9025376df95af58f42e304f9ef627576e6
It's worth noting the theres a new emerge --autounmask option (bug 280097).
This is fixed in 2.2_rc74.