Gentoo Archives: gentoo-user

From: Renat Golubchyk <ragermany@×××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] sudo echo
Date: Thu, 23 Mar 2006 23:12:32
Message-Id: 20060323233851.4b374070@mating-tux.renatik.de
In Reply to: Re: [gentoo-user] sudo echo by Daniel da Veiga
1 On Thu, 23 Mar 2006 18:27:46 -0300 "Daniel da Veiga"
2 <danieldaveiga@×××××.com> wrote:
3 > Sudo takes a command as parameter, enclose the whole command in quotes
4 > and try again, like this:
5 >
6 > sudo "echo "app-portage/porthole ~*" >> /etc/portage/package.keywords"
7 ^ ^ ^ ^
8
9 Careful with those quotation marks - you might want to escape them ;-)
10 I would use single quotes on the outside to avoid the confusion:
11
12 sudo 'echo "app-portage/porthole ~*" >> /etc/portage/package.keywords'
13
14
15 Cheers,
16 Renat
17
18 --
19 Probleme kann man niemals mit derselben Denkweise loesen,
20 durch die sie entstanden sind.
21 (Einstein)

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] sudo echo Bo Andresen <bo.andresen@×××××.com>
Re: [gentoo-user] sudo echo David Morgan <david.morgan@××××××××××××××××.uk>