On Sun, Jul 01, 2012 at 10:41:12AM +0800, Penguin Lover 赵佳晖 squawked: > I have use your method , it didn't work . > Like: > sudo echo "sys-boot/grub:2 **" >> > /etc/portage/package.accept_keywords/package.keywords.grub2 echo > "sys-boot/grub:2 **" | sudo tee > /etc/portage/package.accept_keywords/package.keywords.grub2 > > And the result : > zjhui@gentoo ~ $ ls -l > /etc/portage/package.accept_keywords/package.keywords.grub2 > -rw-r--r-- 1 root root 0 Jul 1 10:37 > /etc/portage/package.accept_keywords/package.keywords.grub2 > > It's an empty file.
I think you misread the e-mail. The left hand side below is what you **shouldn't** do. The right hand side is what you **should** do. So you **should** run echo "sys-boot/grub:2 **" | sudo tee /etc/portage/package.accept_keywords/package.keywords.grub2 and no more. W > > > If Neil is right, you may want to read man tee. It work roughly like > > that: > > instead of do > > sudo echo sthg > /etc/file.cfg echo sthg | sudo tee /etc/file.cfg > > sudo echo sthg >> /etc/file.cfg echo sthg | sudo tee -a /etc/file.cfg