Boyd Stephen Smith Jr. wrote:

>
> You want:
> sudo "echo 'media-video/xine-ui ~x86' >> /etc/portage/package.keywords"
>
No, I'm sorry, this is completely false.

Running

sudo "echo 'media-video/xine-ui ~x86' >> /etc/portage/package.keywords"

causes sudo to search the PATH for a *single* executable file named
"sudo echo 'media-video/xine-ui ~x86' >>
/etc/portage/package.keywords".  It will find no such file, and report
"command not found".

Besides, the echo command doesn't support the *shell* redirection
operators.  It is the *shell* that interprets those.  Echo just prints
every argument it receives to stdout, so even if you managed to pass
">>" to echo in it's argv, it would just print those characters to its
stdout.

> This cause the command
> echo 'media-video/xine-ui ~x86' >> /etc/portage/package.keywords
> to be passed to the sudo shell which causes the bash built-in:


sudo has no builtin bash or bash-like shell.


-Richard

-- 
gentoo-user@gentoo.org mailing list

Reply via email to