Gentoo Archives: gentoo-user

From: David Morgan <david.morgan@××××××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] sudo echo
Date: Thu, 23 Mar 2006 23:56:01
Message-Id: 20060323231238.GA7783@sif.mshome.net
In Reply to: Re: [gentoo-user] sudo echo by Renat Golubchyk
1 On 23:38 Thu 23 Mar , Renat Golubchyk wrote:
2 > Careful with those quotation marks - you might want to escape them ;-)
3 > I would use single quotes on the outside to avoid the confusion:
4 >
5 > sudo 'echo "app-portage/porthole ~*" >> /etc/portage/package.keywords'
6 >
7
8
9 Do that and it'll say
10
11 sudo: echo "app-portage/porthole ~*" >> /etc/portage/package.keywords: command not found
12
13 This has been discussed on here before.
14
15 The problem is that if you do `sudo echo foo > bar`, the echo is being
16 run as root, but the writing to bar isn't.
17
18 In this case, you might like to look at app-portage/flagedit (it's less
19 typing for a start).
20
21 --
22 djm
23 --
24 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] sudo echo Renat Golubchyk <ragermany@×××.net>