echo bug?

Jay Daniels tux at myt60.net
Sat Sep 12 02:13:31 UTC 2009


On Fri, 2009-09-11 at 21:51 -0400, Shannon McMackin wrote:
> On 09/11/2009 09:34 PM, Jared Greenwald wrote:
> > What exactly are you trying to accomplish?
> >
> > On Fri, Sep 11, 2009 at 9:19 PM, Jay Daniels<tux at myt60.net>  wrote:
> >> Why doesn't this work???
> >>
> >>
> >> sudo echo "deb http://ppa.launchpad.net/gwibber-team/ubuntu hardy main"
> >>> /etc/apt/sources.list.d/gwibber.list
> >> bash: /etc/apt/sources.list.d/gwibber.list: Permission denied
> >>
> >>
> >> Now I thought sudo was the equivalent to root permissions?
> >>
> >>
> >> jay
> >>
> >>
> >> --
> >> ubuntu-users mailing list
> >> ubuntu-users at lists.ubuntu.com
> >> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> >>
> >
> Appears he's trying an easy way to add a line to an apt-repo file.
> 
> Can you do a sudo vi of that file?
> 
> 

yes I can, but I wanted to do it from a shell script and wonder why my
echo doesn't work as expected?

Perhaps sudo is not the equivalent of root or echo does not inherit the
permission from sudo?


jay





More information about the ubuntu-users mailing list